Running into a weird problem on a number of my production systems, we end up
having two different applications started up and monit records them as
having the same PID so in turn its reporting that both apps are up.
Obviously only one app can have that PID but the problem is monit is
reporting that the application is actually up when it is not. The only way
I have been able to resolve it is to echo some junk chars into the pid file
so the app starts or stop/start the app. Is this a known bug? I am running
5.2.5 at the moment and tempted to upgrade.
The way I right out my pidfile is pretty straightforward and this happens
directly in the run script.
# drop pid into pidfile
echo $$ > ${PIDFILE}
Process 'F17'
status running
monitoring status monitored
*pid 32317*
parent pid 32315
uptime 15h 35m
children 0
memory kilobytes 871828
memory kilobytes total 871828
memory percent 3.5%
memory percent total 3.5%
cpu percent 0.0%
cpu percent total 0.0%
data collected Fri Oct 21 09:11:36 2011
Process 'F15'
status running
monitoring status monitored
*pid 32317*
parent pid 32315
uptime 15h 35m
children 0
memory kilobytes 871828
memory kilobytes total 871828
memory percent 3.5%
memory percent total 3.5%
cpu percent 0.0%
cpu percent total 0.0%
data collected Fri Oct 21 09:11:36 2011
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general