Marc, Thanks. I had never tried passing Nagios macros into a custom shell script before, but it works like a champ.
Mike -----Original Message----- From: Marc Powell [mailto:li...@xodus.org] Sent: Tuesday, October 05, 2010 9:10 AM To: Nagios Users List Subject: Re: [Nagios-users] Different Notification command templates for Host Down and Host Up On Oct 5, 2010, at 6:36 AM, Mike Callahan wrote: > 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. > Does anyone have another solution for this, where I would be able to send > different notification commands for host down and host recovery? The notification commands are just references to scripts. The default/example one is just a big one-liner script. There's no reason you couldn't create your own notification script in your favorite $language that implements your subject logic based on status and sends the e-mail just as nagios does. -- Marc ------------------------------------------------------------------------------ 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 _______________________________________________ Nagios-users mailing list Nagios-users@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 ------------------------------------------------------------------------------ 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 _______________________________________________ Nagios-users mailing list Nagios-users@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