You then question your sanity because you can’t find it in the HTTP, TCP, email block where you would expect a HTTP check, but then later find it below, in the Networking section. You create a check.
You fill Search for strings ➜ Search in body ➜ Fixed string as:
MyCoolApp™ Version
because you want to match the “MyCoolApp™ Version 1.3.37” string in the footer. Your check then goes CRIT with (null) as plugin output. A closer look at the plugin command in the service details page reveals the issue: check_mk_active-httpv2!--url https://myapp.tld --body-string 'MyCoolApp&trade
Things I found that might help narrow down the origin of the issue:
running it from the CLI with --body-string 'MyCoolApp™ Vers' works fine, so it’s probably not the check binary itself
The string also saves fine in the web interface and editing the check later brings the original string back into the input field.
it’s also not the nagios config generation, as etc/conf.d/check_mk_objects.cfg shows the correct call:
Could you provide me with the exact output? I suspect the output also contains the semicolon at a position where parsing by the Nagios core fails. There are a few subtle differences between allowed characters for Nagios and CMC. I’ll forward to dev in that case.
Thanks, unfortunately, this is not enough. I also need the service name generated or the rule for service name generation. If it contains the semicolon, it most likely is the cause.
The only semicolon I could find is in the test string. Should I look anywhere else or is this all you need?
To repro, I really just created a dummy check with foo;bar as the body search string.
NOTE: You may not include a semicolon (;) in the command_line directive, because everything after it will be ignored as a config file comment. You can work around this limitation by setting one of the $USER$ macros in your resource file to a semicolon and then referencing the appropriate $USER$ macro in the command_line directive in place of the semicolon.
; is a forbidden character inside any command definition.