]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/monit/files/puppet
Try to get the timing the same, but leave a lot of room in the
[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 > 45 minutes for 3 cycles then exec "/etc/init.d/puppet stop"
15     depends on puppetd
16