aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/nagios.pp3
2 files changed, 3 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 13cb359..449f09f 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -233,9 +233,6 @@ class sshd {
}
if $use_nagios {
- define sshd::nagios {
- nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" }
- }
case $nagios_check_ssh {
false: { info("We don't do nagioschecks for ssh on ${fqdn}" ) }
default: { sshd::nagios{$sshd_ports:} }
diff --git a/manifests/nagios.pp b/manifests/nagios.pp
new file mode 100644
index 0000000..5a5a5ed
--- /dev/null
+++ b/manifests/nagios.pp
@@ -0,0 +1,3 @@
+define sshd::nagios {
+ nagios::service{ "ssh_port_${name}": check_command => "check_ssh_port!$name" }
+}