I'm lazy: How about an event handler trigger selection?
Posted: Tue Jun 23, 2015 8:07 am
I'm well-versed in writing event handlers. They fire at SOFT result or state change. I'm good with that. But sometimes, I just want to fire an event handler through NRPE that is nothing more than "check_nrpe -H HOSTANME -c command_name" and be done with it.
Consider this a feature request for XI (and by proxy, Core):
I'd like a set of selection criteria (two, most likely) that state when to fire an event handler in the service config screen. Right now, it's "choose event handler" pull-down and then on/off/skip/null (which, frankly, I don't get). I'd like to see this changed to the pull-down plus on/of (because I don't understand skip and null) and then also ok/warning/critical radio boxes and a entry for every time or just on the Xth occurrence (typically, first, second, or third).
This gives me the ability to use existing commands (such as the aforementioned check_nrpe) to throw a "service donut_maker restart" command into the remote host nrpe.cfg file and then just fire it off on the second CRITICAL state without having to code a piece of shell that gets fired every time and has to check itself to see if it's time to restart the donuts.
Does that make sense? I think it would greatly simplify what 80% of people use event handlers for 80% of the time. Obviously, the corresponding Core config directives would have to be created first....
Consider this a feature request for XI (and by proxy, Core):
I'd like a set of selection criteria (two, most likely) that state when to fire an event handler in the service config screen. Right now, it's "choose event handler" pull-down and then on/off/skip/null (which, frankly, I don't get). I'd like to see this changed to the pull-down plus on/of (because I don't understand skip and null) and then also ok/warning/critical radio boxes and a entry for every time or just on the Xth occurrence (typically, first, second, or third).
This gives me the ability to use existing commands (such as the aforementioned check_nrpe) to throw a "service donut_maker restart" command into the remote host nrpe.cfg file and then just fire it off on the second CRITICAL state without having to code a piece of shell that gets fired every time and has to check itself to see if it's time to restart the donuts.
Does that make sense? I think it would greatly simplify what 80% of people use event handlers for 80% of the time. Obviously, the corresponding Core config directives would have to be created first....