]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/monit/files/puppet
sudo: replace debbits by publicity
[dsa-puppet.git] / modules / monit / files / puppet
index 5d3e21c273ab26971e82d37973750d4f5ce5d2cf..7368083677c5707f5763e369349f437da0a93f96 100644 (file)
@@ -1,7 +1,9 @@
-check process puppetd with pidfile /var/run/puppet/puppetd.pid
-    start program = "/etc/init.d/puppet start"
-    stop program  = "/etc/init.d/puppet stop"
-    if cpu is greater than 80% for 3 cycles then alert
-    if cpu > 60% for 5 cycles then restart
-    if 5 restarts within 5 cycles then timeout
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
 
+check file cronalive
+    with path /var/cache/dsa/cron.alive
+    # a cycle is 5 minutes, 24 cycles is thus 2 hours
+    if timestamp > 120 minutes for 24 cycles then exec "service cron restart"