On 5/25/06, Rafael Alfaro <[EMAIL PROTECTED]> wrote:
Hi all !!,

When I use a list of host in the hostgroup entries, mon does not call
the alert script that I wrote, it only works when I put only a single
host.
It is strange, because I see messages in the logs, so mon is catching
the events, but does not call the alert script.
Please Help me,
any suggests are welcome.
Bellow is my mon.cf.

Not sure about ping.monitor, I tend to use fping.monitor instead with
a few options tweaked for my personal preferences. ping.monitor
(patched) works fine for me below.

Your interval of 1s seems a bit short though. Do you really need to
check that often? (I ping every 60s).

You can run the scripts from the command line, does that work for you?

Actually, looking at ping.monitor, there's a patch below to add
support for FreeBSD. One of these days I'll get around to writing a
FreeBSD port...

Ta
Aled.

--- ping.monitor        Wed Jun  9 06:18:04 2004
+++ ping.monitor.fbsd   Thu May 25 11:55:46 2006
@@ -43,7 +43,7 @@
   SunOS)
      PING="/usr/sbin/ping"
      ;;
-    NetBSD|OpenBSD)
+    NetBSD|OpenBSD|FreeBSD)
      PING="/sbin/ping -c 1"
      ;;
   *)

_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to