SV: SV: [hobbit] hobbitd_alert command is not working ( maybe )

Rob Munsch rmunsch at solutionsforprogress.com
Thu Oct 26 16:13:55 CEST 2006


-----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)" mprice at hst.nasa.gov'

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)" mprice at hst.nasa.gov

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)" mprice at hst.nasa.gov'
> 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:  240-684-1356
>             Cell:   410-507-7476
>             e-mail: mprice at hst.nasa.gov
> ----------------------------------------------
> 
> 
> 
> 
> 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
>>
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>>
>>   


- --
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-----



More information about the Xymon mailing list