X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmonit%2Ffiles%2Fpuppet;h=ab3fe14ed75bc65eab41bcb76b4e320a1ec41389;hb=1b49f38b343a31db48dc2c0ef67e50e1d587dff0;hp=5d3e21c273ab26971e82d37973750d4f5ce5d2cf;hpb=f2f92b39bc5084d1b67cec8c51bebc94c9190d84;p=mirror%2Fdsa-puppet.git diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 5d3e21c27..ab3fe14ed 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -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 > 90 minutes for 9 cycles then exec "/etc/init.d/puppet stop" + depends on puppetd +