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
Changing $NOTIFICATIONTYPE$ variable
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: Changing $NOTIFICATIONTYPE$ variable
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.
"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
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
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
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.
"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.