[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Processes not starting
From: |
Martin Pala |
Subject: |
Re: Processes not starting |
Date: |
Mon, 15 Oct 2012 14:48:44 +0200 |
Hi,
the configuration looks OK - please run monit in verbose mode (using the -v
option) and provide the output. Also make sure that the virtuoso_astra PID
described by the /var/run/virtuoso/virtuoso_astra.pid is not running already
("ps -ef | grep `cat /var/run/virtuoso/virtuoso_astra.pid`").
Regards,
Martin
On Oct 15, 2012, at 2:37 PM, Carina Haupt <address@hidden> wrote:
> 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
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general