monit-general
[Top][All Lists]
Advanced

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

[monit] Re: bug in remote host ping test?


From: Martin Pala
Subject: [monit] Re: bug in remote host ping test?
Date: Thu, 11 Oct 2007 22:58:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 Iceape/1.1.4 (Debian-1.1.4-1)

This was bug, which was fixed in monit 4.8.2.

The problem can happen if the service has no start and/or stop program defined. As workarounf you can add for example this line to your service:

  start program = "/bin/true"

Or upgrade monit to at least version 4.8.2


Martin



Alex Stewart wrote:
Can anyone else confirm this issue? - I have a workaround for what I
was trying to do, but still.

-Alex

On 10/6/07, Alex Stewart <address@hidden> wrote:
Dear All,

While I was playing around with monit (v4.8.1 - although I don't see
any description of this problem in the changelogs for more recent
monit releases) on a cluster, I noticed that if a 'check host' entry
in the monitrc file that contains a remote host ping test is declared
'mode manual' and hence in a specific group, that the check host
statement is *ignored* by monit when the group is started (using monit
-g testGroup start all), even though all other (i.e. non check-host
statements) in the same group *are* started.

No error messages are output when the start group command is given and
no information relating to the check host entries is written in the
monit.log file when the group is started either.  But from either the
httpd interface, or the monit status command line option the 'check
host' statements, whilst present always remain in the 'not monitored'
status.  You can however explicitly start them using the httpd
interface and they appear to start correctly.

If you swap the 'mode manual' for 'mode active' and remove the 'group
testGroup' section from the 'check host' statement then when monit is
started everything is fine and the 'remote host ping tests' are
active.

Note that monit is running as root (it's actually started as an
upstart job (I'm using Ubuntu feisty hence initd has been deprecated)
at boot time) and the monit -t option says the monitrc file syntax is
OK.

I tested this using the following (where an entry for ben-mini-1
exists in the hosts file on the machine - and as I said, this works
just fine if the 'mode manual' --> 'mode active' and the 'group
testGroup' section is removed):

check host ben-mini-1 with address ben-mini-1
  if failed icmp type echo count 5 with timeout 5 seconds
     then exec "/usr/local/bfrt-monit/scripts/mNmUsurp 1"
  mode manual
  group testGroup

I didn't find anything in the documentation that suggests that
suggests the remote host ping test can't be used in this way and it
seems logical that you should be able to put these tests in manual
groups, or am I missing something here?


-Alex



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




reply via email to

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