Notification commands

Josef Fortier joe.fortier at simondelivers.com
Sun Feb 4 22:03:46 CET 2007


Hi All:

Does anyone have any thoughts on notification best practices?

I just wrote a little shell script to use heredocs to send mail. This
seems preferable to the cookbook notifications, as it makes the message
body a lot more intuitive (you can format the message visually). There's
a simple caveat, the environmental variables that the shell sees are all
prepended with "NAGIOS_".

Looking at this, I added HTML email (multi-part alternative, easy
enough). I know there's a script floating around Nagios Exchange to do
this, but it did not work for me (I think it was built around an older
version of nagios and macros may have changed).

Of all this brings up a few questions I'd like to bounce off the mailing
list.

    1) Is there a compelling reason to stick with the one-line
       sendmail/printf notifications? I can't think of any (they already
       shell out, so the approaches seem functionally very close).

    2) Would it make sense to build a smarter version. The first idea
       that occurs to me is to build it to recognize HOST vs SERVICE
       messages transparently. Thinking about this some more, and this
       seems like a fairly clean way to build "business logic" into the
       notifications (i.e., indicating specialized escalation
       information for certain cases).

    3) Is anyone else interested in posting a version of this to the
       Nagios Exchange?

Joe

-- 

_______________________________________________________________________

Josef Fortier                             
Network Administrator                                   
_______________________________________________________________________

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list