Page 1 of 1

Pulling check result into an event handler?

Posted: Wed Jun 21, 2017 5:28 am
by FrontlineIT
Is there anyway to pull a result from a check into an event handler.
For instance, I currently have an app pool monitor that if an app pool was down, would give me the result which would be app pool name.
If I was able to pull the result of the app pool monitor and pass that onto the event handler, then it would be possible to have the event handler start up the app pool specified in the result if it ever went down.

What version of Nagios XI are you using? - 5.4.5
Linux Distribution and version? - CENTOS
32 or 64bit? - 64BIT
VMware Image or Manual Install of XI? - Manual install

Re: Pulling check result into an event handler?

Posted: Wed Jun 21, 2017 10:19 am
by tgriep
Yes, there is a way to pass the status output from a check in to an event handler, the following link is an introduction to event handlers and the Advanced Features section, talks about how to pass the macros to the handler.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Take a look at it and let us know if you have any questions.

This link is the list of macros that Nagios uses and which commands they are available to be used.
https://assets.nagios.com/downloads/nag ... olist.html

Re: Pulling check result into an event handler?

Posted: Wed Jun 21, 2017 2:50 pm
by FrontlineIT
Thank you so much!

Re: Pulling check result into an event handler?

Posted: Wed Jun 21, 2017 4:22 pm
by tgriep
Your welcome. If you have any questions, let us know.