Hi
We have a Redhat Linux server running Tomcat(6.0.10). I've configured
monitoring tomcat using monit (4.9).
Here is the snippet from my monitrc file
# Tomcat
check process tomcat with pidfile "/var/run/tomcat.pid"
start program = "/etc/init.d/tomcat start"
stop program = "/etc/init.d/tomcat stop"
if failed port 8080 then alert
When I kill tomcat, monit detects that tomcat is not running and sends me an
email. However monit is unable to restart tomcat. This is what I see in the
monit.log file
[EDT Aug 2 15:41:35] info : Starting monit daemon with http interface
at [*:2813]
[EDT Aug 2 15:41:35] info : Starting monit HTTP server at [*:2813]
[EDT Aug 2 15:41:35] info : monit HTTP server started
[EDT Aug 2 15:41:35] info : Monit started
[EDT Aug 2 15:41:36] error : 'tomcat' process is not running
[EDT Aug 2 15:41:36] info : 'tomcat' trying to restart
[EDT Aug 2 15:41:36] info : 'tomcat' start: /etc/init.d/tomcat
[EDT Aug 2 15:42:36] info : Monit has not changed
[EDT Aug 2 15:42:36] error : 'tomcat' process is not running
[EDT Aug 2 15:42:36] info : 'tomcat' trying to restart
[EDT Aug 2 15:42:36] info : 'tomcat' start: /etc/init.d/tomcat
[EDT Aug 2 15:42:36] error : 'tomcat' failed to start
...
I'm running monit as "root" and I can successfully run "/etc/init.d/tomcat
start" to start tomcat.
Any ideas what is going on here...
Thank you
Ramesh