this should be cool
authorStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 09:00:53 +0000 (09:00 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 7 Mar 2010 09:00:53 +0000 (09:00 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/ferm/manifests/init.pp

index 84fc808..ff57e91 100644 (file)
@@ -48,6 +48,12 @@ class ferm {
                         notify  => Exec["ferm restart"];
         }
 
+        $munin_ips = split(regsubst($v4ips, '([^,]+)', 'ip_\1', 'G'), ',')
+
+        activate_munin_check {
+            $munin_ips: script => "ip_";
+        }
+
         exec { "ferm restart":
                 command     => "/etc/init.d/ferm restart",
                 refreshonly => true,