Skip to content

Commit 900d40e

Browse files
committed
Add Werk 18920 FIX Check HTTP web service: Fix text searches
SUP-24931 Change-Id: I78172f6019d531a3bfc6b72442fd74cd0c6aaeb3
1 parent 1c70f03 commit 900d40e

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.werks/18920.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[//]: # (werk v2)
2+
# Check HTTP web service: Fix text searches
3+
4+
key | value
5+
---------- | ---
6+
date | 2025-12-08T08:48:50+00:00
7+
version | 2.3.0p42
8+
class | fix
9+
edition | cre
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
In the _Check HTTP web service_ ruleset, when configuring _Search for strings > search for header > Regular expression > Return CRITICAL_ [sic] _if found, OK if not_, some bugs occured:
15+
16+
**Wrong caption in ruleset**
17+
First of all: The caption should read _Return WARN if found, OK if not_, since _WARN_ is the fixed state that will be returned for all failing header/body string/regex searches.<br>
18+
Please note that this will change starting with Checkmk 2.4.0p18, see Werk #18921.
19+
20+
**Inverted header regex search didn't work**
21+
The service yielded an _OK_ state most of the times, even if the regex _was_ found in the headers.<br>
22+
This happened because the search iterates over all headers and stopped on first expected result. If the first header didn't contain the regex, the engine was satisfied and didn't continue.
23+
24+
**Wrong info on inverted header regex searches**
25+
Also the appended _(matched/not matched)_ info was swapped, leading to even more confusion.<br>
26+
Note: This info text will be enhanced a bit to be more meaningful, see also Werk #18921.
27+

0 commit comments

Comments
 (0)