]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/monit/files/puppet
Hopefully this doesn't cause 4 puppet processes to run simultaneously
[dsa-puppet.git] / modules / monit / files / puppet
index 37c728b281523446512a671f9ff1aadc6bfe5fa9..39a5626f557d8d85bbf396023e885ca7357afc95 100644 (file)
@@ -9,3 +9,8 @@ check process puppetd with pidfile /var/run/puppet/puppetd.pid
     if cpu > 60% for 5 cycles then restart
     if 5 restarts within 5 cycles then timeout
 
+check file puppetstate
+    with path /var/lib/puppet/state/state.yaml
+    if timestamp > 1 hour then exec "/etc/init.d/puppet stop"
+    depends on puppetd
+