From 7103d6bfcc92fe2700c3655dd949b782cae9f80f Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 7 Nov 2008 20:19:31 +0000 Subject: check ssh with nagios git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2672 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests') 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 { -- cgit v1.2.3