I am using monit version 3.2 on my Redhat 7.3 based system to monitor and restart processes.
when process plum gets killed by user manually monit doesn't restart it sometimes ( 3 out of 10 times).
However, if I change the mode to active from manual, it seems to restart it always.
Now the problem is when I sent the fix for review someone pointed out that we use manual mode
by default in our project and also in active mode monitor won't monitor for the cpuusage/memusage criteria.
Is that assumption true? Please clarify ?
I would like to know if it is a bug in monit code. My organization would not allow me to upgrade to a newer
version of monit right now, so I need to fix the issue in the current version of monit itself.
Appreciate your suggestions.
check plum with pidfile /opt/cbz/var/run/plum.pid
start program = "/etc/init.d/plum start"
stop program = "/etc/init.d/plum stop"
cpuusage > 60.0 for 3 cycles restart
memusage > 35.0 restart
bash-2.05a# monit -V
This is monit version 3.2
Copyright (C) 2000-2003 by Contributors to the monit codebase
Nothing says Labor Day like 500hp of American muscle