[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Processes not starting
From: |
Carina Haupt |
Subject: |
Processes not starting |
Date: |
Mon, 15 Oct 2012 14:37:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20120828 Thunderbird/10.0.7 |
Hi,
I want to monitor several processes using monit:
check process virtuoso_all with pidfile /var/run/virtuoso/virtuoso_all.pid
start = "/usr/local/bin/virtuoso.sh start all"
stop = "/usr/local/bin/virtuoso.sh stop all"
if failed host scai-virtuoso port 8892 then restart
if 5 restarts within 5 cycles then alert
check process virtuoso_astra with pidfile
/var/run/virtuoso/virtuoso_astra.pid
start = "/usr/local/bin/virtuoso.sh start astra"
stop = "/usr/local/bin/virtuoso.sh stop astra"
if failed host scai-virtuoso port 8896 then restart
if 5 restarts within 5 cycles then alert
...
If i start monit with -v everything looks good (see below). But only the
first process is started. The second one does not appear in the front
end, neither is the shell script given in start executed.
Where is my mistake?
Process Name = virtuoso_all
Pid file = /var/run/virtuoso/virtuoso_all.pid
Monitoring mode = active
Start program = '/usr/local/bin/virtuoso.sh start all' timeout
30 second(s)
Stop program = '/usr/local/bin/virtuoso.sh stop all' timeout
30 second(s)
Existence = if does not exist 1 times within 1 cycle(s)
then restart else if succeeded 1 times within 1 cycle(s) then alert
Pid = if changed 1 times within 1 cycle(s) then alert
Ppid = if changed 1 times within 1 cycle(s) then alert
Port = if failed [scai-virtuoso:8892 [DEFAULT via TCP]
with timeout 5 seconds and retry 0 time(s) 1 times within 1 cycle(s)
then restart else if succeeded 1 times within 1 cycle(s) then alert
Timeout = If restarted 5 times within 5 cycle(s) then alert
Process Name = virtuoso_astra
Pid file = /var/run/virtuoso/virtuoso_astra.pid
Monitoring mode = active
Start program = '/usr/local/bin/virtuoso.sh start astra'
timeout 30 second(s)
Stop program = '/usr/local/bin/virtuoso.sh stop astra' timeout
30 second(s)
Existence = if does not exist 1 times within 1 cycle(s)
then restart else if succeeded 1 times within 1 cycle(s) then alert
Pid = if changed 1 times within 1 cycle(s) then alert
Ppid = if changed 1 times within 1 cycle(s) then alert
Port = if failed [scai-virtuoso:8896 [DEFAULT via TCP]
with timeout 5 seconds and retry 0 time(s) 1 times within 1 cycle(s)
then restart else if succeeded 1 times within 1 cycle(s) then alert
Timeout = If restarted 5 times within 5 cycle(s) then alert
...
Carina Haupt
Fraunhofer-Institute for Algorithms and Scientific Computing (SCAI)
Schloss Birlinghoven
D-53754 Sankt Augustin
Tel.: +49 - 2241 - 14 - 3480
E-mail: address@hidden
Internet: http://www.scai.fraunhofer.de
and
Bonn-Aachen International Center for Information Technology (B-IT)
Dahlmannstrasse 2
D-53113 Bonn
E-mail: address@hidden
Internet: http://www.b-it-center.de
- Processes not starting,
Carina Haupt <=