]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/monit/files/puppet
I'm getting tired of finding stuck cron daemons
[dsa-puppet.git] / modules / monit / files / puppet
index ab3fe14ed75bc65eab41bcb76b4e320a1ec41389..589ecbcf1957ea0badbb42b8b32252dae7d75c96 100644 (file)
@@ -14,3 +14,12 @@ check file puppetstate
     if timestamp > 90 minutes for 9 cycles then exec "/etc/init.d/puppet stop"
     depends on puppetd
 
+check process cron with pidfile /var/run/crond.pid
+    start program = "/etc/init.d/cron start"
+    stop program  = "/etc/init.d/cron stop"
+    if 5 restarts within 5 cycles then timeout
+
+check file cronalive
+    with path /var/cache/dsa/cron.alive
+    if timestamp > 120 minutes for 5 cycles then exec "/etc/init.d/cron stop"
+    depends on crond