monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Can't restart monit


From: Martin Pala
Subject: Re: [monit] Can't restart monit
Date: Fri, 16 Jan 2009 22:28:07 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081204 Iceape/1.1.14 (Debian-1.1.14-1)

This is strange ... works well on freebsd-6.4 for me:

address@hidden /usr/ports/sysutils/monit]# uname -a
FreeBSD freebsd6.localdomain 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 address@hidden:/usr/obj/usr/src/sys/GENERIC i386

address@hidden /usr/ports/sysutils/monit]# ps -auxw | grep monit
root 62182 0.0 1.0 3580 2388 ?? S 11:18PM 0:00.20 /usr/local/bin/monit -c /usr/local/etc/monitrc

address@hidden /usr/ports/sysutils/monit]# cat /var/run/monit.pid
62182

address@hidden /usr/ports/sysutils/monit]# /usr/local/etc/rc.d/monit restart
Performing sanity check on monit configuration:
Control file syntax OK
Stopping monit.
Waiting for PIDS: 62182
Starting monit.
Starting monit daemon with http interface at [*:2812]

address@hidden /usr/ports/sysutils/monit]# cat /var/run/monit.pid
62212

address@hidden /usr/ports/sysutils/monit]# ps -auxw | grep monit
root 62212 0.0 1.0 3580 2388 ?? S 11:21PM 0:00.05 /usr/local/bin/monit -c /usr/local/etc/monitrc


I'm using monit rc script /usr/local/etc/rc.d/monit from monit port (/usr/ports/sysutils/monit).

Verified with monit port (4.10.1) and latest development version (5.0_beta6).


I'd suggest setting logging in monit configuration + enable verbose mode ... you can modify the following line in rc script:

  command_args="-c ${default_config}"

to (added "v"):

  command_args="-vc ${default_config}"


Can you verify whether monit is running with PID for which the rc script is waiting? (in the example it was 93378).


Thanks,
Martin




Nicola Tiling wrote:
Hi

For some time past I can't restart monit (only) on one of my machines (FreeBSD 6.4 x64, previously 6.2)

/usr/local/etc/rc.d/monit restart
Performing sanity check on monit configuration:
Control file syntax OK
Stopping monit.
Waiting for PIDS: 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378, 93378,
 .... and so on

Only "kill -9"  stops the process. How can I figure out the reason ?

Nicola


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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