]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/monit/files/puppet
Try to get the timing the same, but leave a lot of room in the
[dsa-puppet.git] / modules / monit / files / puppet
index 5d3e21c273ab26971e82d37973750d4f5ce5d2cf..789c67875f1715ca508f93a0f836394de01fcd9f 100644 (file)
@@ -1,3 +1,7 @@
+##
+## 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 process puppetd with pidfile /var/run/puppet/puppetd.pid
     start program = "/etc/init.d/puppet start"
     stop program  = "/etc/init.d/puppet stop"
@@ -5,3 +9,8 @@ check process puppetd with pidfile /var/run/puppet/puppetd.pid
     if cpu > 60% for 5 cycles then restart
     if 5 restarts within 5 cycles then timeout
 
+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"
+    depends on puppetd
+