Hi,
I use a Event Handler for integration with our ticket system.
It work well for all situation but one.
When a service is acknowledge, the Event Handler don't detect it is and contact out ticket system to raise a ticket. But since it's acknowledge, I don't want raise a ticket. Is there a way to see if there is a ack flag on the service with Event Handler? I did not find any macro for doing such thing.
Acknowledgement and Event Handler
Re: Acknowledgement and Event Handler
There may be an API option available for this now, if not, it may make a great feature request.
One way I know of to accomplish this, is to parse status.dat and look for a comment correlating to the host_name / service_description.
One way I know of to accomplish this, is to parse status.dat and look for a comment correlating to the host_name / service_description.
Former Nagios Employee
Re: Acknowledgement and Event Handler
Thank you rkennedy,
I thought about this and it will work.
That mean that I have to add some logic to my actual script to get the information from status.dat.
Would be great if problem_has_been_acknowledged can be passed to my script like any other macro with the event handler.
I thought about this and it will work.
That mean that I have to add some logic to my actual script to get the information from status.dat.
Would be great if problem_has_been_acknowledged can be passed to my script like any other macro with the event handler.
Re: Acknowledgement and Event Handler
rkennedy is correct, you'd need to either query the API object for problem_acknowledged or pull from the status.dat in your script.
Re: Acknowledgement and Event Handler
Thank you. I now used status.dat to confirme the acknowledgement.
Could be a good idea to ask for this for a new version of Nagios. Would be nice to have a macro for acknowledgement.
Could be a good idea to ask for this for a new version of Nagios. Would be nice to have a macro for acknowledgement.
Re: Acknowledgement and Event Handler
This would be a Nagios Core feature request, you can create a feature request here if you'd like:
https://github.com/NagiosEnterprises/nagioscore/issues
Thank you
https://github.com/NagiosEnterprises/nagioscore/issues
Thank you