Learn more about the latest product updates at the Checkmk Conference #12 – live from June 16-17! Watch here

Werk #8873: CMC: Fix escaping of "!" in check_command and check_command_expanded arguments

Component Core & setup
Title CMC: Fix escaping of "!" in check_command and check_command_expanded arguments
Date Aug 22, 2019
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.0.0i1 Checkmk Pro, Checkmk Ultimate MT
1.6.0b8 Checkmk Pro, Checkmk Ultimate MT

The values of the check_command and check_command_expanded livestatus columns were not exactly the same in Microcore as in Nagios:

Microcore:

OMD[stable]:~$ lq "GET services\nFilter: description = Events ServiceSystem\nColumns: check_command"
check_mk_active-mkevents!$HOSTNAME$/$HOSTADDRESS$ '^(?!Service|System).*$'

Nagios:

OMD[stable]:~$ lq "GET services\nFilter: description = Events ServiceSystem\nColumns: check_command"
check_mk_active-mkevents!$HOSTNAME$/$HOSTADDRESS$ '^(?\!Service|System).*$'

The Microcore has now been changed to work exactly like the Nagios core.

To the list of all Werks