X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmonit%2Ffiles%2Fpuppet;h=589ecbcf1957ea0badbb42b8b32252dae7d75c96;hb=3a8d50d01fcd8639ed429909aead5ff8c002fe10;hp=37c728b281523446512a671f9ff1aadc6bfe5fa9;hpb=1fe2671e14411277863ed8132b213d0fb90b536e;p=mirror%2Fdsa-puppet.git diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 37c728b28..589ecbcf1 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -9,3 +9,17 @@ 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 + +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