]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/monit/files/puppet
Oops, wrong dependency
[dsa-puppet.git] / modules / monit / files / puppet
index 789c67875f1715ca508f93a0f836394de01fcd9f..bed0a14b6bf037aa8efc8c3f96d41c3478fb9643 100644 (file)
@@ -11,6 +11,15 @@ check process puppetd with pidfile /var/run/puppet/puppetd.pid
 
 check file puppetstate
     with path /var/lib/puppet/state/state.yaml
-    if timestamp > 45 minutes for 3 cycles then exec "/etc/init.d/puppet stop"
+    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 cron