Sample Header Ad - 728x90

How do I configure to 'monit' monitor a process after it restarts?

2 votes
1 answer
1987 views
I have monit configured to terminate a pair of processes when they consume too much CPU, but once either is terminated, monit summary reports "Not monitored" for the process, even after the OS relaunches it. How do I configure to 'monit' monitor a process after it restarts? ---- check process soagent matching "soagent" stop program = "/usr/bin/pkill -9 soagent" if cpu > 20% for 1 cycles then stop if cpu > 20% for 1 cycles then alert check process callservicesd matching "callservicesd" stop program = "/usr/bin/pkill -9 callservicesd" if cpu > 20% for 1 cycles then stop if cpu > 20% for 1 cycles then alert macOS 10.13.4, monit 5.25.2
Asked by orome (416 rep)
May 31, 2018, 09:36 PM
Last activity: Jun 3, 2018, 11:34 PM