summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-11-07 20:19:31 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-11-07 20:19:31 +0000
commit7103d6bfcc92fe2700c3655dd949b782cae9f80f (patch)
tree5993a95d0826f34a87a2928ccfd4f05af6b27f09 /manifests
parent96bbe0adb8323ecb8e95e6be8900e6dd1b57b419 (diff)
check ssh with nagios
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2672 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1c7a3e8..c7f6bff 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -228,6 +228,12 @@ class sshd::base {
hasstatus => true,
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 {