Xymon Mailing List Archive search

hobbitd_alert command is not working ( maybe )

list Michael A. Price
Thu, 26 Oct 2006 09:26:37 -0400
Message-Id: <user-24add78fd799@xymon.invalid>

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.

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