From d0d04546b7e9bce0ce910403493a4efda2cbf877 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 4 Jun 2013 13:47:30 -0300 Subject: Fixing check_ping parameter on nodo::subsystem::monitor --- manifests/subsystem/monitor.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manifests/subsystem/monitor.pp') 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}": -- cgit v1.2.3