[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] checking process at startup
From: |
Jovan Kostovski |
Subject: |
[monit] checking process at startup |
Date: |
Wed, 6 Aug 2008 14:43:12 +0200 |
Hi,
I have a process which takes more than 1 monit cycle to start.
When its starting I get the following error messages:
process is not running
failed to start
does not exist
started
Is it possible to specify the time in monit cycles which is needed
for process to start in which the process should not be checked?
I've seen in the monit web interface that there is a parameter:
"Check service every 1 cycle"
How can I set this parameter to value other than 1, and to be process specific?
This is not good solution, because only the starting of the process is
time consuming,
but if I set monit to check the service every 3rd or 4th cycle that
would be satisfying.
Here is the service config part:
check process soapserver with pidfile /vas/pid/sms_soap.pid
start program = "/etc/ha.d/resource.d/ha-ss start"
stop program = "/etc/ha.d/resource.d/ha-ss stop"
mode manual
group cluster
depends on queuemgr
And an excerpt of the monit.log when restarting the service:
[CEST Apr 12 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 12 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 12 03:00:03] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 13 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 13 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 13 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 14 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 14 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 14 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 15 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 15 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 15 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 16 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 16 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 16 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 17 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 17 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 17 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 18 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 18 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 18 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 19 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 19 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 19 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 20 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 20 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 20 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 21 03:00:01] info : 'soapserver' trying to restart
[CEST Apr 21 03:00:01] info : 'soapserver' stop: /etc/ha.d/resource.d/ha-ss
[CEST Apr 21 03:00:02] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 21 03:00:32] error : 'soapserver' process is not running
[CEST Apr 21 03:00:32] error : 'soapserver' failed to start
[CEST Apr 21 03:00:33] info : 'soapserver' trying to restart
[CEST Apr 21 03:00:33] info : 'soapserver' start: /etc/ha.d/resource.d/ha-ss
[CEST Apr 21 03:00:34] info : 'soapserver' started
[CEST Apr 21 03:01:03] info : 'soapserver' process is running with pid 28352
BR, Jovan
- [monit] checking process at startup,
Jovan Kostovski <=