add cronjob to kill hanging munin-runs
authormh <mh@immerda.ch>
Mon, 1 Jun 2009 19:28:22 +0000 (21:28 +0200)
committermh <mh@immerda.ch>
Mon, 1 Jun 2009 19:28:22 +0000 (21:28 +0200)
manifests/host.pp

index fdaa255..b23a7e5 100644 (file)
@@ -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 {