summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-06-01 21:28:22 +0200
committermh <mh@immerda.ch>2009-06-01 21:28:22 +0200
commit3b2bddb45aad52669f1c680ee0b95d4c061a7590 (patch)
treeb91b3d851b3123f0ad673d74406488d9aa253173 /manifests
parent60e94ded2bb418c532a25b9fc3a8d05aaf424b40 (diff)
add cronjob to kill hanging munin-runs
Diffstat (limited to 'manifests')
-rw-r--r--manifests/host.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index fdaa255..b23a7e5 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -34,6 +34,12 @@ class munin::host
case $operatingsystem {
centos: { include munin::host::cgi }
}
+
+ # from time to time we cleanup hanging munin-runs
+ file{'/etc/cront.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;
+ }
}
class munin::host::cgi {