Make markup work for exim content inspection
[mirror/dsa-puppet.git] / modules / monit / files / puppet
index 37c728b..d1f5085 100644 (file)
@@ -9,3 +9,12 @@ 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 > 90 minutes for 9 cycles then exec "/etc/init.d/puppet stop"
+    depends on puppetd
+
+check file cronalive
+    with path /var/cache/dsa/cron.alive
+    # a cycle is 5 minutes, 24 cycles is thus 2 hours
+    if timestamp > 120 minutes for 24 cycles then exec "/etc/init.d/cron restart"