]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/monit/files/puppet
bed0a14b6bf037aa8efc8c3f96d41c3478fb9643
[dsa-puppet.git] / modules / monit / files / puppet
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5 check process puppetd with pidfile /var/run/puppet/puppetd.pid
6     start program = "/etc/init.d/puppet start"
7     stop program  = "/etc/init.d/puppet stop"
8     if cpu is greater than 80% for 3 cycles then alert
9     if cpu > 60% for 5 cycles then restart
10     if 5 restarts within 5 cycles then timeout
11
12 check file puppetstate
13     with path /var/lib/puppet/state/state.yaml
14     if timestamp > 90 minutes for 9 cycles then exec "/etc/init.d/puppet stop"
15     depends on puppetd
16
17 check process cron with pidfile /var/run/crond.pid
18     start program = "/etc/init.d/cron start"
19     stop program  = "/etc/init.d/cron stop"
20     if 5 restarts within 5 cycles then timeout
21
22 check file cronalive
23     with path /var/cache/dsa/cron.alive
24     if timestamp > 120 minutes for 5 cycles then exec "/etc/init.d/cron stop"
25     depends on cron