--On Friday, September 23, 2005 18:43:23 +0000 Tarak Patel <[EMAIL PROTECTED]> wrote:

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.


Looking at the code confirms my suspicion that 'invalid host in auth.cf' means it wasn't able to resolve the hostname in your config file. Are you using a fully qualified domain name or a short name?

You also should strongly consider using the current CVS version of both mon and mon-client, which have some serious bugs fixed. I just tagged the current CVS head of mon as mon-1.1.0pre2.

-David


David Nolan                    <*>                    [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
     a herd of rogue emacs fsck your troff and vgrind your pathalias!

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

Reply via email to