Configurable cisco_asa_failover unhandled state status in Setup

1 votes

We would like to be able to set the criticality of the unhandled state check so as to set it critical instead of the hard coded warning level.

To be specific. In the cisco_asa_failover file in share/checkmk/checks on a site line 92 a yield 1 forces the state to be warning. We would like this to be configurable like the failover_state in line 88 in the same file is.

Reasoning - by default we have set a rule on failover_state that it does not matter if primary or secondary is active -> failover_state = OK. However, would want to get alerts with level critical if the failover status is not active or standby which currently only gives a warning.

Suggestion is to add a Setup configurable parameter that defines what is yielded at line 92.

This should be a relatively simple thing to implement as it only needs a variable in the Setup configuration and then modification of the yield to use this configuration.

Already exists Suggested by: Jonas Groth Jakobsen Upvoted: 22 Sep, '22 Comments: 2

Comments: 2