Werk #5913: webapi: Fixed handling of the option mode in service discovery

Component Setup
Title webapi: Fixed handling of the option mode in service discovery
Date Apr 11, 2018
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0p31 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The previous implementation of the option "mode" in service_discovery did not allow a handling in the same way as in other webapi requests like including it into the request part. This is now fixed. The old behaviour is still supported.

old only supported this syntax: curl "http://localhost/$OMD_SITE/check_mk/webapi.py?action=discover_services&_username=automation&_secret=$(cat $OMD_ROOT/var/check_mk/web/automation/automation.secret)&mode=refresh" -d 'request={"hostname":"heute"}'

newly supported and now coherent to other calls: curl "http://localhost/$OMD_SITE/check_mk/webapi.py?action=discover_services&_username=automation&_secret=$(cat $OMD_ROOT/var/check_mk/web/automation/automation.secret)" -d 'request={"hostname":"heute", "mode":"refresh"}'

To the list of all Werks