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
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
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"