diff options
-rw-r--r-- | manifests/host.pp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/manifests/host.pp b/manifests/host.pp index 9fd637d..fd70710 100644 --- a/manifests/host.pp +++ b/manifests/host.pp @@ -32,14 +32,15 @@ class munin::host inherits munin include munin::plugins::muninhost case $operatingsystem { - centos: { include munin::host::cgi } + centos: { + include munin::host::cgi + # from time to time we cleanup hanging munin-runs + file{'/etc/cron.d/munin_kill': + content => "4,34 * * * * root if $(ps ax | grep -v grep | grep -q munin-run); then killall munin-run; fi\n", + owner => root, group => 0, mode => 0644; + } + } } - - # from time to time we cleanup hanging munin-runs - file{'/etc/cron.d/munin_kill': - content => "4,34 * * * * root if $(ps ax | grep -v grep | grep -q munin-run); then killall munin-run; fi\n", - owner => root, group => 0, mode => 0644; - } if $use_shorewall { include shorewall::rules::out::munin } |