From c01cdbd4c5c3500f6a3427d6649d9755f79c574f Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 17 Oct 2009 16:51:26 +0100 Subject: [PATCH] add some ps_ munin plugins Signed-off-by: Stephen Gran --- modules/munin-node/manifests/apache.pp | 1 + modules/munin-node/manifests/init.pp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/munin-node/manifests/apache.pp b/modules/munin-node/manifests/apache.pp index f554c1604..df0171e84 100644 --- a/modules/munin-node/manifests/apache.pp +++ b/modules/munin-node/manifests/apache.pp @@ -3,6 +3,7 @@ class munin-node::apache inherits munin-node { "apache_accesses":; "apache_processes":; "apache_volume":; + "ps_apache2": script => "ps_"; } } diff --git a/modules/munin-node/manifests/init.pp b/modules/munin-node/manifests/init.pp index 699f4cf7a..034e821df 100644 --- a/modules/munin-node/manifests/init.pp +++ b/modules/munin-node/manifests/init.pp @@ -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"]; } } -- 2.20.1