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
------------------------------------------------------------------------------
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
_______________________________________________
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