diff options
author | mh <mh@immerda.ch> | 2010-10-20 21:17:16 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-10-20 21:17:16 +0200 |
commit | d0d3d20e1411511cccdf6fa3ae63164f2868221d (patch) | |
tree | fb4d6f67d1a3ac99dbec57dc77cd63c5e93e34d4 /manifests/init.pp | |
parent | 988a88f4e62065b45c8e32f6f915e052ff394003 (diff) | |
download | puppet-sshd-d0d3d20e1411511cccdf6fa3ae63164f2868221d.tar.gz puppet-sshd-d0d3d20e1411511cccdf6fa3ae63164f2868221d.tar.bz2 |
add nagios_check_ssh_hostname to tweak the hostname which whould be monitored, as this one might actually differ
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 449f09f..54f822a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -201,8 +201,7 @@ class sshd { } if $sshd_port != '' { $sshd_ports = [ $sshd_port ] - } - elsif ! $sshd_ports { + } elsif ! $sshd_ports { $sshd_ports = [ 22 ] } case $sshd_authorized_keys_file { @@ -235,7 +234,15 @@ class sshd { if $use_nagios { case $nagios_check_ssh { false: { info("We don't do nagioschecks for ssh on ${fqdn}" ) } - default: { sshd::nagios{$sshd_ports:} } + default: { + sshd::nagios{$sshd_ports: + check_hostname => $nagios_check_ssh_hostname ? { + '' => 'absent', + undef => 'absent', + default => $nagios_check_ssh_hostname + } + } + } } } |