add some ps_ munin plugins
authorStephen Gran <steve@lobefin.net>
Sat, 17 Oct 2009 15:51:26 +0000 (16:51 +0100)
committerStephen Gran <steve@lobefin.net>
Sat, 17 Oct 2009 15:51:26 +0000 (16:51 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/munin-node/manifests/apache.pp
modules/munin-node/manifests/init.pp

index f554c16..df0171e 100644 (file)
@@ -3,6 +3,7 @@ class munin-node::apache inherits munin-node {
                 "apache_accesses":;
                 "apache_processes":;
                 "apache_volume":;
+                "ps_apache2": script => "ps_";
         }
 }
 
index 699f4cf..034e821 100644 (file)
@@ -1,8 +1,8 @@
-define activate_munin_check($ensure=present) {
+define activate_munin_check($ensure=present, script=$name) {
     case $ensure {
         present: {
             file { "/etc/munin/plugins/$name":
-                     ensure => "/usr/share/munin/plugins/$name",
+                     ensure => "/usr/share/munin/plugins/$script",
                      notify => Exec["munin-node restart"];
             }
         }