Page 1 of 1
Changing $NOTIFICATIONTYPE$ variable
Posted: Wed Nov 13, 2013 10:02 pm
by Fred Kroeger
I need to change one of the $NOTIFICATIONTYPE$ values from "PROBLEM" to "EVENT"
Apparently "PROBLEM" is the wrong ITIL terminology for teh Service Desk.
Is there an easy way I can redefine this?
Thanks... Fred
Re: Changing $NOTIFICATIONTYPE$ variable
Posted: Thu Nov 14, 2013 10:44 am
by abrist
You cannot really change it internally in nagios. Do you need to just change it for notifications? Do you email a ticketing system and need to change the value to comply with the ticketing system's syntax?
Re: Changing $NOTIFICATIONTYPE$ variable
Posted: Tue Nov 19, 2013 9:44 pm
by Fred Kroeger
I posted a reply to this but just noticed it's not listed?
Anyway....
Yes I am emailling a Ticketing System but really need to keep the $NOTIFICATIONTYPE$ variable in the subject line so that they can differentiate a Problem/Recovery/Flapping/Downtime message. In the Ticketing system a Problem Record is different to an Incident Record which is why they want another word instead of Problem for the $NOTIFICATIONTYPE$
regards... Fred
Re: Changing $NOTIFICATIONTYPE$ variable
Posted: Wed Nov 20, 2013 10:28 am
by abrist
You would have to script around it on the nagios side or the ticketing system side. On the Nagios side, you would create a wrapper script that would be called by the notification handler. This script would contain logic to alter certain macros to your taste and then send the email (with the altered text) to the ticketing system. Not horribly hard, but generating a complex email from the cli may be a bit tricky.