X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fmonit%2Ffiles%2Fpuppet;h=bed0a14b6bf037aa8efc8c3f96d41c3478fb9643;hb=52cd7b3bec6018336e6b7d9671b90cfc4f8d75ef;hp=39a5626f557d8d85bbf396023e885ca7357afc95;hpb=65f06838cfece607935dd1bd7f7cd94ad83fa6e6;p=mirror%2Fdsa-puppet.git diff --git a/modules/monit/files/puppet b/modules/monit/files/puppet index 39a5626f5..bed0a14b6 100644 --- a/modules/monit/files/puppet +++ b/modules/monit/files/puppet @@ -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 > 1 hour 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