aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-06-04 13:47:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-06-04 13:47:30 -0300
commitd0d04546b7e9bce0ce910403493a4efda2cbf877 (patch)
tree1c18ff541f2fe21303ce48ca5abd960f8335fc3b /manifests
parent1171ed8e99ab351e96e9a9c88cde17df261668bb (diff)
downloadpuppet-nodo-d0d04546b7e9bce0ce910403493a4efda2cbf877.tar.gz
puppet-nodo-d0d04546b7e9bce0ce910403493a4efda2cbf877.tar.bz2
Fixing check_ping parameter on nodo::subsystem::monitor
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystem/monitor.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/subsystem/monitor.pp b/manifests/subsystem/monitor.pp
index e57d177..194af53 100644
--- a/manifests/subsystem/monitor.pp
+++ b/manifests/subsystem/monitor.pp
@@ -8,9 +8,15 @@ class nodo::subsystem::monitor(
) {
if $use_nagios != false {
+
+ $command = $check_command ? {
+ 'check_ping' => "check_ping${ping_rate}",
+ default => $check_command,
+ }
+
class{ 'nagios::target':
address => $address,
- check_command => $check_command,
+ check_command => $command,
}
nagios::service::ping { "${::fqdn}":