I am using python3-zabbix-api-0.5.4 with ansible community.zabbix module v1.4.0. After I upgraded from zabbix 5.2 to 5.4.4 I can no longer import zabbix templates from ansible. The error from ansible is:
I enabled debug logging in python3-zabbix-api-0.5.4 module, but I still do not see where Invalid parameter "/1/uuid" comes from, I do not see anything passed as "/1/uuid".
Code:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: zabbix_api.ZabbixAPIException: ('Error -32602: Invalid params., Invalid parameter "/1/uuid": UUIDv4 is expected. while sending {"jsonrpc": "2.0", "method": "configuration.import", "params": {"format": "json", "source": "{\\"zabbix_export\\": {\\"version\\": \\"5.4\\", \\"date\\": \\"2021-09-02T16:06:53Z\\", \\"groups\\": [{\\"uuid\\": \\"6aa69e1012224d919584d9214bbbae75\\", \\"name\\": \\"nginx-common\\"}], \\"templates\\": [{\\"uuid\\": \\"00f082a4bd8d5fabb2a361899a3c21c0\\", \\"template\\": \\"check dev-games-backend.example.com_v1_ab-kiron-vf_version HIGH\\", \\"name\\": \\"check dev-games-backend.example.com/v1/ab-kiron-vf/version [HIGH]\\", \\"groups\\": [{\\"name\\": \\"nginx-common\\"}], \\"httptests\\": [{\\"uuid\\": \\"fc5212ff929758b58f5e3d21418c6d01\\", \\"name\\": \\"dev-games-backend/v1/ab-kiron-vf/version\\", \\"attempts\\": \\"3\\", \\"verify_host\\": \\"YES\\", \\"steps\\": [{\\"name\\": \\"/v1/ab-kiron-vf/version\\", \\"url\\": \\"https://{HOST.CONN}/v1/ab-kiron-vf/version\\", \\"headers\\": [{\\"name\\": \\"Host\\", \\"value\\": \\"dev-games-backend.example.com\\"}], \\"timeout\\": \\"15s\\", \\"required\\": \\"\\", \\"status_codes\\": \\"200\\"}]}]}, {\\"uuid\\": \\"2df7a5c45c525cb6bd26a6c7fe81e5be\\", \\"template\\": \\"check dev-games-backend.example.com_v1_ab-kiron-vf_version DISASTER\\", \\"name\\": \\"check dev-games-backend.example.com/v1/ab-kiron-vf/version [DISASTER]\\", \\"groups\\": [{\\"name\\": \\"nginx-common\\"}], \\"items\\": [], \\"discovery_rules\\": [], \\"httptests\\": [{\\"uuid\\": \\"fc5212ff929758b58f5e3d21418c6d01\\", \\"name\\": \\"dev-games-backend/v1/ab-kiron-vf/version\\", \\"attempts\\": \\"3\\", \\"verify_host\\": \\"YES\\", \\"steps\\": [{\\"name\\": \\"/v1/ab-kiron-vf/version\\", \\"url\\": \\"https://{HOST.CONN}/v1/ab-kiron-vf/version\\", \\"headers\\": [{\\"name\\": \\"Host\\", \\"value\\": \\"dev-games-backend.example.com\\"}], \\"timeout\\": \\"15s\\", \\"required\\": \\"\\", \\"status_codes\\": \\"200\\"}]}]}], \\"triggers\\": [{\\"uuid\\": \\"00f082a4bd8d5fabb2a361899a3c21c0\\", \\"expression\\": \\"min(check dev-games-backend.example.com_v1_ab-kiron-vf_version HIGH:web.test.fail[dev-games-backend/v1/ab-kiron-vf/version],5m)<>0\\", \\"name\\": \\"{HOST.HOST} failed nginx proxy \\\\\\"https://dev-games-backend.example.com/v1/ab-kiron-vf/version\\\\\\" health-check\\", \\"priority\\": \\"HIGH\\"}, {\\"uuid\\": \\"2df7a5c45c525cb6bd26a6c7fe81e5be\\", \\"expression\\": \\"min(check dev-games-backend.example.com_v1_ab-kiron-vf_version DISASTER:web.test.fail[dev-games-backend/v1/ab-kiron-vf/version],#2)<>0\\", \\"name\\": \\"{HOST.HOST} failed nginx proxy \\\\\\"https://dev-games-backend.example.com/v1/ab-kiron-vf/version\\\\\\" health-check\\", \\"priority\\": \\"DISASTER\\"}]}}", "rules": {"discoveryRules": {"createMissing": true, "updateExisting": true, "deleteMissing": true}, "graphs": {"createMissing": true, "updateExisting": true, "deleteMissing": true}, "groups": {"createMissing": true}, "httptests": {"createMissing": true, "updateExisting": true, "deleteMissing": true}, "items": {"createMissing": true, "updateExisting": true, "deleteMissing": true}, "templates": {"createMissing": true, "updateExisting": true}, "templateLinkage": {"createMissing": true, "deleteMissing": true}, "triggers": {"createMissing": true, "updateExisting": true, "deleteMissing": true}, "valueMaps": {"createMissing": true, "updateExisting": true}, "templateDashboards": {"createMissing": true, "updateExisting": true, "deleteMissing": true}}}, "auth": "3edcbd4e5b495d6b5aa6018f0406ce48", "id": 6}', -32602)
Comment