DOWNTIME NOTIFICATION

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

DOWNTIME NOTIFICATION

Post by povachon »

Is there anyway to modify the downtime notification alert?
Regard
PO
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: DOWNTIME NOTIFICATION

Post by sreinhardt »

What about it would you like to modify? This is a very general question, of which many paths could be taken.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
povachon
Posts: 44
Joined: Thu Apr 10, 2014 9:24 am
Contact:

Re: DOWNTIME NOTIFICATION

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: DOWNTIME NOTIFICATION

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
technick
Posts: 49
Joined: Tue Feb 04, 2014 10:30 am
Location: Denver, CO

Re: DOWNTIME NOTIFICATION

Post 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
----------------------
Nagios Jedi in training.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: DOWNTIME NOTIFICATION

Post 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!
Locked