Notification commands
Aaron Segura
aaron.segura at cabelas.com
Mon Feb 5 16:32:30 CET 2007
Did you look at:
http://www.nagiosexchange.org/Notifications.35.0.html?&tx_netnagext_pi1[p_view]=627
Seems that with a little fancy macro/template work, you could get what
you want. We use it for the "Business logic" you mentioned...different
chunks of information can be included/excluded depending on the contents
of any macro.
??
On Sun, 2007-02-04 at 15:03 -0600, Josef Fortier wrote:
> 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
>
-------------------------------------------------------------------------
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