Werk #17815: check_httpv2: macros wrapped in square brackets not supported

Component Checks & agents
Title check_httpv2: macros wrapped in square brackets not supported
Date Mar 18, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p30 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When configuring the URL for check_httpv2, an IPv6 address should be wrapped within square brackets, for example

https://[::1]

However, if you were to use a macro within the URL, and wrapped the macro in square brackets, it would not be parsed correctly and would generate a crash report. For example

https://[$HOSTNAME$]

With this werk, we now avoid the crash and display a user-friendly warning message on saving.

To the list of all Werks