From: Silvio Rhatto Date: Tue, 4 Jun 2013 16:47:30 +0000 (-0300) Subject: Fixing check_ping parameter on nodo::subsystem::monitor X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d0d04546b7e9bce0ce910403493a4efda2cbf877;p=puppet-nodo.git Fixing check_ping parameter on nodo::subsystem::monitor --- 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}":