monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

monit unable to start Tomcat


From: Ramesh B
Subject: monit unable to start Tomcat
Date: Thu, 2 Aug 2007 14:10:25 -0700 (PDT)

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
-- 
View this message in context: 
http://www.nabble.com/monit-unable-to-start-Tomcat-tf4208803.html#a11972883
Sent from the monit-general mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]