Thanks for your help.
I will try your suggestions, and will comment how it works.
I comment your mail bellow.
On 5/25/06, Aled Treharne <[EMAIL PROTECTED]> wrote:
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.
Thanks, I will try with fping.monitor.
Your interval of 1s seems a bit short though. Do you really need to
check that often? (I ping every 60s).
Yes, you are right, I do not need to check that so often, It was only
for testing, but I will change the interval, thanks.
You can run the scripts from the command line, does that work for you?
Yes I can run my alert.d script from the command line.
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"
;;
*)
--
Rafael Alfaro.
Omnilife Independent Distributor.
"People taking care of people".
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon