Red Hat Bugzilla – Bug 1290646
Allow trivial monitoring of kill switch
Last modified: 2016-08-15 21:35:03 EDT
Provide a mechanism to monitor whether the kill switch is enabled.
This could be as simple as
but as long as it's easy to determine the status, I'm not particularly concerned about the implementation details.
I don't believe the state of the switch is particularly sensitive (even if the reason for the state might be) - so I would hope that the status would be available without logging in.
(In reply to Will Thames from comment #0)
> I don't believe the state of the switch is particularly sensitive (even if
> the reason for the state might be) - so I would hope that the status would
> be available without logging in.
FWIW, I agree that the kill switch state is not secret. In the original design, we only showed the state of the kill switch to users in the rule-engine group because they were the only users who could do something about it. Unfortunately, we didn't consider the possibility of a monitoring system wanting to see the state.
I think this should be done as a DB query
"select count(*) > 0 from rh_rule_state where when_enabled IS NULL"
As I said in #2 this should be done by adding that sql to the monitoring system.