Xymon Mailing List Archive search

hobbitd_alert command is not working ( maybe )

list Rob Munsch
Thu, 26 Oct 2006 10:13:55 -0400
Message-Id: <user-8abcb6799148@xymon.invalid>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael A. Price wrote:
1 Step Closer, thanx guys...

I am still not getting emails alerts when I run  hobbitd_alert by hand.
Although I do get alerts from the hobbit server when things break.
You're running --test.  It shows you:
00024942 2006-10-26 09:24:01 Mail alert with command 'mail -s "Hobbit
[12345] v43mgt:conn CRITICAL (RED)" user-2a9e3c790857@xymon.invalid'
You have a winner! This will only test that a rule "fires" and triggers
your mail command, which it did.

I would simply type in, as the hobbit user,

$ mail -s "Hobbit Blah Test Text (RED)" user-2a9e3c790857@xymon.invalid

and see if you get a blank email with that subject.  If so, it's
something else.  But if not, maybe the hobbit user can't access mail, or
the mail command is broked, or something like that.
here is the output below, I think it is because the alert is not
creating text in the body so the 'mail ' command is hanging. Any work
arounds for this???


[hobbit at chickeen hobbit]$ bbcmd hobbitd_alert --test v43mgt conn
2006-10-26 09:24:01 Using default environment file
/home/hobbit/server/etc/hobbitserver.cfg
00024942 2006-10-26 09:24:01 send_alert v43mgt:conn state Paging
00024942 2006-10-26 09:24:01 Matching host:service:page 'v43mgt:conn:'
against rule line 129
00024942 2006-10-26 09:24:01 *** Match with 'HOST=*' ***
00024942 2006-10-26 09:24:01 Matching host:service:page 'v43mgt:conn:'
against rule line 129
00024942 2006-10-26 09:24:01 *** Match with 'HOST=*' ***
00024942 2006-10-26 09:24:01 Mail alert with command 'mail -s "Hobbit
[12345] v43mgt:conn CRITICAL (RED)" user-2a9e3c790857@xymon.invalid'
00024942 2006-10-26 09:24:01 Matching host:service:page 'v43mgt:conn:'
against rule line 131
00024942 2006-10-26 09:24:01 Failed 'HOST=maina' (hostname not in
include list)


thanx, michael


Michael A. Price
Performance Network Engineering
NASA/GSFC Code 440.8/LMB
Greenbelt, Maryland 20770
            Phone:  XXX-XXX-XXXX
            Cell:   XXX-XXX-XXXX
            e-mail: user-2a9e3c790857@xymon.invalid


Henrik Stoerner wrote:
On Mon, Oct 23, 2006 at 07:02:07PM +0200, Lars Ebeling wrote:
  
When I run hobbitd_alert I get this:

$ ./hobbitd_alert --test leopg9 msgs
    
When running hobbit commands by hand, ALWAYS run them through the
"bbcmd" utility. This makes sure all of the settings from
hobbitserver.cfg are loaded. So:

$ bbcmd hobbitd_alert --test ......

If you don't do that, then hobbitd_alert will pick up whatever value
your MAIL environment has, instead of the one from hobbitserver.cfg.


Regards,
Henrik

- --
Rob Munsch
Solutions For Progress IT
www.solutionsforprogress.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFQMKjBvBcJFK6xYURAvr5AKCDXHuOTiE4Iu9SgeGQG5+7VU/UVACghLsQ
6T3Exn1Ozxjl5mQbXWZdUEY=
=leiW
-----END PGP SIGNATURE-----