Different Notification command templates for Host Down and Host Up

Mike Callahan mcallahan at bullseyetelecom.com
Tue Oct 5 13:36:00 CEST 2010


Because I'm sending host up/down notifications to a ticketing system, I have the need to use different verbiage for host down notifications and host up notifications.   Specifically the subject line of the email message needs to be different for host down than for host up.  The only way I could think of to do this was to create two separate contacts, one for down notifications tied to a host notification command called notify-host-by-email-down and a separate contact for ups called notify-host-by-email-up.  Of course, Nagios is too smart for this and declines to send host return to up status messages to contacts that did not receive a down message in the first place.

Does anyone have another solution for this, where I would be able to send different notification commands for host down and host recovery?

Thanks,

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20101005/01cce28b/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
-------------- next part --------------
_______________________________________________
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