-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Michael A. Price wrote:
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. I didn't read this well enough.
When you run the --test you get the block below showing you what WOULD fire if this were an actual emergency. *No email will actually be sent in test mode.*
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
iD8DBQFFQMLqBvBcJFK6xYURAnXVAJ9UQUIjibuICHG3kjXDAtqWRljgLACfZmAP fMeRgWb+jGPTRDTHphq2c8M= =V1cc -----END PGP SIGNATURE-----