|Subject:||RE: [monit] Monit restart command problem|
|Date:||Thu, 5 Mar 2009 13:30:08 -0500|
Process Name = jboss_eradbre
Group = server
Pid file = /opt/local/software/jboss/jboss-4.0.5.GA/logs/jboss_eradbre.pid
Monitoring mode = active
Start program = '/etc/init.d/jboss_eradbre start' timeout 30 second(s)
Stop program = '/etc/init.d/jboss_eradbre stop' timeout 30 second(s)
Pid = if changed 1 times within 1 cycle(s) then alert
Ppid = if changed 1 times within 1 cycle(s) then alert
Timeout = If 3 restart within 5 cycles then unmonitor else if succeeded then alert
There are multiple PID's in the jboss_eradbre.pid file. 3 in this case. See below:
$ cat /opt/local/software/jboss/jboss-4.0.5.GA/logs/jboss_eradbre.pid
Could this be the problem? Could Monit be stopping the 1st PID and then issuing the start command without waiting on the 2nd and 3rd PID's to stop?
If I run the /etc/init.d/jboss_eradbre itself, the problem does not happen, it only happens when Monit handles process.
From: address@hidden [mailto:address@hidden On Behalf Of Martin Pala
Sent: Thursday, March 05, 2009 1:20 PM
To: This is the general mailing list for monit
Subject: Re: [monit] Monit restart command problem
If the check is for different service type (like file, directory, host, etc.), then the stop script is executed followed by start immediately since monit has currently no way how to identify whether the stop script finished OK or not.
What is the configuration of jboss_eradbre service?
You can run monit with -v option to see details.
On Mar 5, 2009, at 5:44 PM, Perdue, Emmett wrote:
This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email.
|[Prev in Thread]||Current Thread||[Next in Thread]|