Different sender address for recoveries vs alerts
Aharon Verno
averno at gsn.com
Fri Jan 11 21:50:47 CET 2013
I'm currently running Nagios v3.3.1 and have been trying to find a way to set different sender addresses for recoveries and alerts. I was wondering if there's an option that I overlooked that lets you easily do this. An example of my notification string for a page is this:
/usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\nDate/Time: $LONGDATETIME$\n" \
| /bin/mail \
-s "$NOTIFICATIONTYPE$: Host: $HOSTNAME$ - $HOSTSTATE$" $CONTACTEMAIL$ -- \
-f <email_address>
The thought is to change the sender address so that when pages come through in the middle of the night the recovery page can be set to a non-obnoxious tone since that one doesn't need to wake you up. If anyone has done something like this before please let me know and if there's some documentation on how to do it somewhere that would be great.
Aharon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130111/57c5b223/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
-------------- 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