check process idmgr with pidfile /var/run/idmgr.pid start program = "/sbin/service idmgr start" stop program = "/sbin/service idmgr stop" if cpu > 60% for 3 cycles then restart if totalmem > 200.0 MB for 3 cycles then restart if failed host localhost port 8080 type tcp then restart if 3 restarts within 5 cycles then timeout