Hello,
Is there any way in nagios to trigger the alert only in hard state when the notification is send and not in soft state?
Thanks.
Only triggering an event in Hard state
Re: Only triggering an event in Hard state
You need to pass the proper macros into your event handler and then check to see if it's a HARD state or SOFT state in the event handler. Then decide whether or not to take action.
Nagios ALWAYS triggers event handlers if they are defined and the thing is not in an OK state. It's up to the event handler script to determine if it should do something or not.
Read this for more information: https://assets.nagios.com/downloads/nag ... dlers.html
Nagios ALWAYS triggers event handlers if they are defined and the thing is not in an OK state. It's up to the event handler script to determine if it should do something or not.
Read this for more information: https://assets.nagios.com/downloads/nag ... dlers.html
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Only triggering an event in Hard state
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
yunushaikh
- Posts: 176
- Joined: Sat Jun 20, 2015 9:04 pm
Re: Only triggering an event in Hard state
Done thanks a lot..
you can close this thread
you can close this thread
Re: Only triggering an event in Hard state
Sweet. Glad to be of assistance.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!