Page 1 of 1

DOWNTIME NOTIFICATION

Posted: Wed May 07, 2014 7:32 am
by povachon
Is there anyway to modify the downtime notification alert?
Regard
PO

Re: DOWNTIME NOTIFICATION

Posted: Wed May 07, 2014 11:48 am
by sreinhardt
What about it would you like to modify? This is a very general question, of which many paths could be taken.

Re: DOWNTIME NOTIFICATION

Posted: Wed May 07, 2014 2:07 pm
by povachon
Here the notification email :
____________________________________________
***** Nagios Monitor XI Alert *****

Notification Type: DOWNTIMESTART
Host: ASL_ESX_NODE-2
State: UP
Address: 10.10.20.209
Info: OK - 10.10.20.209: rta 0.561ms, lost 0%

Date/Time: Wed May 7 08:02:58 EDT 2014
_____________________________________________
Can we change the notification type from DOWNTIMESTART to something else ?

Regard
PO

Re: DOWNTIME NOTIFICATION

Posted: Wed May 07, 2014 3:06 pm
by sreinhardt
With the built-in macros that would not be possible. However you could write a wrapper script or an entirely different sender, that would change that output.

Re: DOWNTIME NOTIFICATION

Posted: Thu May 08, 2014 9:36 am
by technick
povachon wrote:Here the notification email :
____________________________________________
***** Nagios Monitor XI Alert *****

Notification Type: DOWNTIMESTART
Host: ASL_ESX_NODE-2
State: UP
Address: 10.10.20.209
Info: OK - 10.10.20.209: rta 0.561ms, lost 0%

Date/Time: Wed May 7 08:02:58 EDT 2014
_____________________________________________
Can we change the notification type from DOWNTIMESTART to something else ?

Regard
PO
Nagios has a good number of variables (aka macros) that you can include in notifications.

Check out the following links.

The following 3 cover custom variables and the variables built in to Nagios.

http://nagios.sourceforge.net/docs/3_0/ ... tvars.html
http://nagios.sourceforge.net/docs/3_0/macros.html
http://nagios.sourceforge.net/docs/3_0/macrolist.html <~~~THIS ONE IS SUPER USEFUL!!! :mrgreen:

Blog Post about customizing nagios email notifications
http://techpain.blogspot.com/2010/08/na ... email.html

Hope this helps

-Nick

Re: DOWNTIME NOTIFICATION

Posted: Thu May 08, 2014 11:53 am
by slansing
Thanks for the help Technick! I'd agree, you would want to include one of the custom macros which are already present. If you are looking for something that is not listed there, let us know!