aboutsummaryrefslogtreecommitdiff
path: root/manifests/nagios.pp
blob: 890810eff92fedc9bc3f67993a3c7ffec711e300 (plain)
1
2
3
4
5
6
7
8
define sshd::nagios(
  $check_hostname = 'absent'
) {
  case $check_hostname {
    'absent': { nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" } }
    default: { nagios::service{"ssh_port_host_${name}_${check_hostname}": check_command => "check_ssh_port_host!${name}!${check_hostname}" } }
  }
}