monit-general
[Top][All Lists]
Advanced

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

Re: monit unable to start Tomcat


From: Martin Pala
Subject: Re: monit unable to start Tomcat
Date: Thu, 02 Aug 2007 23:15:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070715 Iceape/1.1.3 (Debian-1.1.3-1)

You can try to check the environment variables. Monit starts the program with minimized environment.

Martin

Ramesh B wrote:
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




reply via email to

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