]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fixing check_ping parameter on nodo::subsystem::monitor
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Jun 2013 16:47:30 +0000 (13:47 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Jun 2013 16:47:30 +0000 (13:47 -0300)
manifests/subsystem/monitor.pp

index e57d177045d49f16be6a381e18c64823fdd58cc9..194af53aa34912ca92237b59e4552736072733f9 100644 (file)
@@ -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}":