CMK version: 2.0.0p9
OS version: Debian GNU/Linux 10 (buster)
I’m trying to create a ruleset with the WebAPI and get the following:
root@ ~/cmk # curl "https://cmk-test.xxxx.me/cmktest/check_mk/webapi.py?action=set_ruleset&_username=automation&_secret=xxxxxx&request_format=python" -d "request={'ruleset_name':'checkgroup_parameters:cpu_load','ruleset': {'/import/test': [{'conditions': {}, 'options': {}, 'value': {'levels': (2.5, 3.5)}}]}}"
{"result_code": 1, "result": "Checkmk exception: No WATO folder \/import\/test."}
Yet on the CheckMK server:
OMD[cmktest]:~/etc/check_mk/conf.d/wato$ tree
.
├── contacts.mk
├── global.mk
├── groups.mk
├── import
│ └── test
├── it
│ └── hosts.mk
├── notifications.mk
├── rules.mk
├── tags.mk
└── test
└── hosts.mk
Can anyone explain why I’m getting this error?
Thanks