Werk #17292: check_httpv2: Body checking: Fixes for inverted regular expressions
Komponente | Checks & agents | ||||
Titel | check_httpv2: Body checking: Fixes for inverted regular expressions | ||||
Datum | 18.09.2024 | ||||
Level | Kleine Änderung | ||||
Klasse | Bugfix | ||||
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen | ||||
Checkmk versions & editions |
|
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.