Page 1 of 1

How to trigger Event Handler only when there is a HARD state

Posted: Tue Jun 06, 2017 3:33 pm
by caterpillartce
Hello,

I am using Event Handler to send alerts as tickets to BMC Remedy. However it seems like we are getting tickets even when there is only SOFT state change, so we are getting more tickets than real alerts. Is there a way to only trigger Event Handler when there is a HARD state change?

Thanks!

Re: How to trigger Event Handler only when there is a HARD s

Posted: Tue Jun 06, 2017 3:40 pm
by avandemore
No, you would need to build logic into your event handler to be smart enough to act appropriately with the information.

This is the type of data you would need to pass into your event handler:

https://assets.nagios.com/downloads/nag ... olist.html

We do offer custom development for a fee. Let me know if you are interested and I'll get you in touch with the right people.

Re: How to trigger Event Handler only when there is a HARD s

Posted: Tue Jun 06, 2017 3:56 pm
by SteveBeauchemin
From the link you have been provided, and drilling in one level, you can see an example SH file shown that does exactly what you want.

It checks the soft states, and you can tell it that when it gets HARD to do something. That was a perfect link to provide by @avandemore.

The script is in here... https://assets.nagios.com/downloads/nag ... dlers.html
Just re-purpose it to what you need.

Steve B

Re: How to trigger Event Handler only when there is a HARD s

Posted: Tue Jun 06, 2017 4:01 pm
by dwhitfield
For clarity, Adam's "no" was that there's not a check box for this. Steve provided a more specific link (thanks!), but Adam's link is important for going forward. You may need different logic in the future, and those macros are the key.