Unique Identifier for Alert Messages
Unique Identifier for Alert Messages
We are sending alert notifications to our Ticketing system via email so that it opens a ticket. I was wondering if there was a unique Identifier that could be use so that multiple tickets aren't created on the same incident. Is there something in the Macros that could be used for this. A number that does not change until the issue is brought back to a OK state.
Re: Unique Identifier for Alert Messages
I think it would be the $serviceproblemid$ macro described in this doc:
http://nagios.sourceforge.net/docs/nagi ... eproblemid
http://nagios.sourceforge.net/docs/nagi ... eproblemid
Re: Unique Identifier for Alert Messages
I believe that $SERVICEPROBLEMID$ is what you are looking for.
Best,
Jesse
http://nagios.sourceforge.net/docs/3_0/macrolist.htmlA globally unique number associated with the service's current problem state. Every time a service (or host) transitions from an OK or UP state to a problem state, a global problem ID number is incremented by one (1). This macro will be non-zero if the service is currently a non-OK state. State transitions between non-OK states (e.g. WARNING to CRITICAL) do not cause this problem id to increase. If the service is currently in an OK state, this macro will be set to zero (0). Combined with event handlers, this macro could be used to automatically open trouble tickets when services first enter a problem state.
Best,
Jesse
Re: Unique Identifier for Alert Messages
Thanks guys, I will test with these macros and report back if this is what I want.
Re: Unique Identifier for Alert Messages
Great, let us know if that will work for you when you get a chance to try it out. Thanks.
Re: Unique Identifier for Alert Messages
So, the recovery message comes back with the ID of 0 for each one. What's up with that?
Re: Unique Identifier for Alert Messages
It might consider the recovery to be an "OK" state . . . .jolson wrote: If the service is currently in an OK state, this macro will be set to zero (0).
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.