Werk #17292 · Sep 18, 24
check_httpv2: Body checking: Fixes for inverted regular expressions
The new active check for HTTP endpoints offers the option to search the response body for strings. This search can be configured to either use a fixed string or a regular expression. In the latter case, there is the additional option to invert the matching: Report WARNING if the expression matches and OK if not. This werk fixes two issues related to this option:
-
In the user interface, the inversion option was incorrectly labelled with "CRITICAL" instead of "WARNING" in case the expression matches.
-
In the service output, if inversion was activated, a not-matched expression was labelled with "matched" and a matched expression with "not matched". Note that the actual service state (WARNING if matched, OK otherwise) was correct.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.4.0b1All Editions
- 2.3.0p18CommunityProUltimateUltimate + MT