Is there anyway to modify the downtime notification alert?
Regard
PO
DOWNTIME NOTIFICATION
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: DOWNTIME NOTIFICATION
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.
Re: DOWNTIME NOTIFICATION
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 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
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.
Re: DOWNTIME NOTIFICATION
Nagios has a good number of variables (aka macros) that you can include in notifications.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
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!!!
Blog Post about customizing nagios email notifications
http://techpain.blogspot.com/2010/08/na ... email.html
Hope this helps
-Nick
----------------------
Nagios Jedi in training.
Nagios Jedi in training.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: DOWNTIME NOTIFICATION
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!