check ssh with nagios
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2672 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
This commit is contained in:
parent
96bbe0adb8
commit
7103d6bfcc
1 changed files with 6 additions and 0 deletions
|
@ -228,6 +228,12 @@ class sshd::base {
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
require => File[sshd_config],
|
require => File[sshd_config],
|
||||||
}
|
}
|
||||||
|
if $use_nagios {
|
||||||
|
case $nagios_check_ssh {
|
||||||
|
'false': { info("We don't do nagioschecks for ssh on ${fqdn}" ) }
|
||||||
|
default: { nagios::service{ "ssh_port_${sshd_port}": check_command => "ssh_port!$sshd_port" } }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class sshd::linux inherits sshd::base {
|
class sshd::linux inherits sshd::base {
|
||||||
|
|
Loading…
Reference in a new issue