Hi all,
I've been trying to setup a distributed mon system. I have mon running
on two hosts. One uses remote.alert to send TRAP to target host. I've
modified the remote.alert scipt to use target hostname rather than use
localhost. On target host I added a watch using following:
watch trap-service
service testhost_fping
description TRAP: trap fping from testhost
period wd {Sun-Sat}
alert mailme.alert operator #I'm using a
modified version of mail.alert since I don['t have sendmail running
Also I'm using following in "trap section" of auth file
trap section
test_host1 * *
test_host1 aspgtkp *
For some reason above method of adding hosts in trap section is not
working well since i get "mon[27037]: invalid host in
/opt/mon-1.1.6/mon-1.0.0pre5/etc/auth.cf, line 44" error logged in
syslog. Also traps seem to be working since I get "mon[27037]: trap
received for undefined group mainservers" messages in syslog. However
each time a trap is detected it should send an email. At this point I'm
out of ideas. I wonder what information is suppose to be passed via the
trap.
BTW I'm using mon-1.0.0pre5 and mon-client-1.0.0pre2.
Any help is greatly appriciated.
TP
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon