# Error updating Zabbix Host (zabbix\_host)

**URL:** <https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681>\
**Category:** Ansible Project\
**Created:** [June 6, 2016, 9:20pm UTC](https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681 "2016-06-06T21:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reece\_Webb1](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@Reece\_Webb1](https://forum.ansible.com/u/Reece_Webb1)\
**Post date:** [June 6, 2016, 9:20pm UTC](https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681/1 "2016-06-06T21:20:50Z")

</div>

Ansible 2.1, Zabbix 3.0.3, latest zabbix-api module.

I’m trying to write a playbook to update a Zabbix hosts agent interface IP. The host already exists, it has an agent interface (with an incorrect IP). It looks like my playbook is failing because a host group isn’t specified, but I don’t want to change any existing host group info (or anything aside from the interface IP)…

Error:

ESTABLISH LOCAL CONNECTION FOR USER: ansible  
 EXEC /bin/sh -c ‘LANG=C LC\_ALL=C LC\_MESSAGES=C /usr/bin/python && sleep 0’  
fatal: [superrad-mz → localhost]: FAILED! =\> {“changed”: false, “failed”: true, “invocation”: {“module\_args”: {“force”: true, “host\_groups”: null, “host\_name”: “superrad-mz”, “http\_login\_password”: null, “http\_login\_user”: null, “interfaces”: [{“ip”: “64.54.31.174”, “main”: 1, “port”: 10050, “type”: 1, “useip”: 1}], “inventory\_mode”: null, “link\_templates”: null, “login\_password”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”, “login\_user”: “zabmin”, “proxy”: null, “server\_url”: “[https://raddix.radiology.ucsf.edu](https://raddix.radiology.ucsf.edu)”, “state”: “present”, “status”: “enabled”, “timeout”: 10}, “module\_name”: “zabbix\_host”}, “msg”: “Specify at least one group for updating host ‘superrad-mz’.”}  
…ignoring

Playbook:

---

<div class="post-metadata">

**Author:** ![Dorian\_Basuyau](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@Dorian\_Basuyau](https://forum.ansible.com/u/Dorian_Basuyau)\
**Post date:** [November 30, 2016, 8:22am UTC](https://forum.ansible.com/t/error-updating-zabbix-host-zabbix-host/21681/2 "2016-11-30T08:22:22Z")

</div>

I encountered similar issue.

Even when only enabling/disabling we need to specify a valid hostgroup for the Zabbix instance : [https://github.com/ansible/ansible-modules-extras/blob/devel/monitoring/zabbix\_host.py#L230](https://github.com/ansible/ansible-modules-extras/blob/devel/monitoring/zabbix_host.py#L230)

Thanks.

D
