community.zabbix.zabbix httpapi – HttpApi Plugin for Zabbix

Note

This httpapi plugin is part of the community.zabbix collection (version 1.9.3).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.zabbix.

To use it in a playbook, specify: community.zabbix.zabbix.

New in community.zabbix 1.8.0

Synopsis

  • This HttpApi plugin provides methods to connect to Zabbix over their HTTP(S)-based api.

Parameters

Parameter

Comments

http_login_password

string

The http password to access zabbix url with Basic Auth

Configuration:

  • Variable: http_login_password

http_login_user

string

The http user to access zabbix url with Basic Auth

Configuration:

  • Variable: http_login_user

zabbix_auth_key

string

Specifies API authentication key

Configuration:

  • Environment variable: ANSIBLE_ZABBIX_AUTH_KEY

  • Variable: ansible_zabbix_auth_key

zabbix_url_path

string

Specifies path portion in Zabbix WebUI URL, e.g. for https://myzabbixfarm.com/zabbixeu zabbix_url_path=zabbixeu

Default: "zabbix"

Configuration:

  • Environment variable: ANSIBLE_ZABBIX_URL_PATH

  • Variable: ansible_zabbix_url_path

Authors

  • Markus Fischbacher (@rockaut)

  • Evgeny Yurchenko (@BGmot)

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.