summaryrefslogtreecommitdiff
path: root/manifests/host.pp
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-06-02 12:04:21 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-06-02 12:04:21 +0200
commit2ec7065337abc02835be322151c78da4a2410baf (patch)
treeade64070a5e30312323c3d55bd6ecb2278d2e266 /manifests/host.pp
parent8442cf9262887764cfd8d66323d79953d3176cdc (diff)
parente6b9c153680f94acb0201394325d9c2a2bdd4b0a (diff)
merged with immerda
Diffstat (limited to 'manifests/host.pp')
-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..21cf7df 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/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;
+ }
}
class munin::host::cgi {