]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/monit/files/puppet
d1f5085c0cec2bb2f6ac9a738263beab013d5225
[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 file cronalive
18     with path /var/cache/dsa/cron.alive
19     # a cycle is 5 minutes, 24 cycles is thus 2 hours
20     if timestamp > 120 minutes for 24 cycles then exec "/etc/init.d/cron restart"