dj-wasabi / ansible-zabbix-agent

Installing and maintaining zabbix-agent for RedHat/Debian/Ubuntu/Windows/Suse.
https://galaxy.ansible.com/dj-wasabi/zabbix-agent
MIT License
327 stars 249 forks source link

Incorrect method "hostgroup.exists". #62

Closed Jahsis closed 7 years ago

Jahsis commented 7 years ago

I faced issue, when try to create hosts and add them to Zabbix server.

Error:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: zabbix_api.ZabbixAPIException: (u'Error -32602: Invalid params., Incorrect method "hostgroup.exists". while sending {"params": {"name": "Dev Group"}, "jsonrpc": "2.0", "method": "hostgroup.exists", "auth": "f4de56b26a4c322b22f392fb5c6b69f0", "id": 2}', -32602) fatal: [xx.xxx.xxx.xxx -> localhost]: FAILED! => {"changed": false, "failed": true, "parsed": false}

Playbook:

Jahsis commented 7 years ago

This was issue with Ubuntu 16.04 default ansible, which are 2.0.0.2 and which contain bug: https://github.com/ansible/ansible-modules-extras/issues/1759 Doing upgrade to ansible 2.2 with "pip install ansible -U" solve issue.