Changing $NOTIFICATIONTYPE$ variable

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Changing $NOTIFICATIONTYPE$ variable

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing $NOTIFICATIONTYPE$ variable

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Changing $NOTIFICATIONTYPE$ variable

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing $NOTIFICATIONTYPE$ variable

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked