Version: 1.1.8
This role configures a host within Zabbix Server.
Collection |
---|
ansible.utils |
community.general |
community.vmware |
community.zabbix |
Option | Description | Type | Required | Choices | Default |
---|---|---|---|---|---|
vmware_hostname | The hostname or IP address of the vCenter server or standalone ESXi host. If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is |
str | no | ||
vmware_username | The username to use for connecting to the vCenter server or standalone ESXi host. If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is |
str | no | ||
vmware_password | The password to use for connecting to the vCenter server or standalone ESXi host. If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is |
str | no | ||
vmware_datacenter | The name of the datacenter in which the VM is located. If using a standalone ESXi host, this should be set to If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is |
str | no | ||
vmware_vm_folder | The folder in which the VM is located. If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is For formatting, see https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_guest_info_module.html#parameter-folder. |
str | no | ||
vmware_vm_name | The name of the VM to monitor. If zbxhost_vmware_uuid is not defined and zbxhost_configure_vmware_monitoring is |
str | no | ||
zabbix_host | The hostname or IP address of the Zabbix server for API requests. |
str | yes | ||
zabbix_port | The port on which to connect to Zabbix server for API requests. |
int | yes | ||
zabbix_url_path | The URL path for the Zabbix API. If using Apache for web frontend, this should be set to If using NGINX for web frontend, this should be set to an empty string unless configured otherwise. |
str | no | ||
zabbix_ssl | Whether to use SSL for API requests. |
bool | no | False | |
zabbix_validate_certs | Whether to validate SSL certificates for API requests. If not specified, the default behavior is to validate certificates. |
bool | no | ||
zabbix_username | The username to use for API requests. |
str | yes | ||
zabbix_password | The password to use for API requests. |
str | yes | ||
zbxhost_configure_vmware_monitoring | Whether to configure VMware monitoring for the host. |
bool | no | False | |
zbxagent_tls_connect | The type of connection to use for connections to the Zabbix server for active checks. This should not be supplied when not using a Zabbix agent interface. Linux reference: https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2#tlsconnect Windows reference: https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2_win#tlsconnect |
str | no |
|
unencrypted |
zbxagent_tls_accept | The type of connection to accept for connections from the Zabbix server. This should not be supplied when not using a Zabbix agent interface. Linux reference: https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2#tlsaccept Windows reference: https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_agent2_win#tlsaccept |
str | no |
|
unencrypted |
zbxhost_name | The name of the host on the Zabbix Server. |
str | yes | ||
zbxhost_visible_name | The visible name of the host on the Zabbix Server. If not specified, the visible name will not be set on the host. |
str | no | ||
zbxhost_groups | A list of host groups to which the host on the Zabbix Server belongs. |
list of 'str' | yes | ||
zbxhost_interfaces | A list of interfaces for the host on the Zabbix Server. |
list of dicts of 'zbxhost_interfaces' options | yes | ||
zbxhost_templates | A list of templates to link to the host on the Zabbix Server. |
list of 'str' | yes | ||
zbxhost_proxy | The name of the Zabbix proxy to use for the host. This is mutually exclusive with If not specified, the host will not use a proxy. |
str | no | ||
zbxhost_proxy_group | The name of the Zabbix proxy group to use for the host. This is mutually exclusive with If not specified, the host will not use a proxy group. |
str | no | ||
zbxhost_macros | A dictionary of macros to set for the host on the Zabbix Server. |
list of dicts of 'zbxhost_macros' options | no | [] | |
zbxhost_vmware_uuid | The UUID of the VM to monitor. If zbxhost_configure_vmware_monitoring is Otherwise, this value will be used to set the VM UUID host macro, instead of querying the vCenter server or standalone ESXi host. |
str | no |
Option | Description | Type | Required | Choices | Default |
---|---|---|---|---|---|
type | Interface type to add. |
str | no |
|
agent |
main | Whether the interface is used as default. If multiple interfaces with the same type are provided, only one can be default.
|
int | yes |
|
|
useip | Connect to host interface with IP address instead of DNS name.
|
int | yes |
|
|
ip | IP address used by host interface. Required if useip= |
str | no | ||
dns | DNS name of the host interface. Required if useip= |
str | no | ||
port | Port used by host interface. If not specified, default port for each type of interface is used
|
int | no | ||
details | Additional details for SNMP host interfaces. |
dict of 'details' options | no |
Option | Description | Type | Required | Choices | Default |
---|---|---|---|---|---|
authpassphrase | SNMPv3 authentication passphrase. Used when securitylevel= |
str | no | ||
authprotocol | SNMPv3 authentication protocol. Used when securitylevel=1(authNoPriv) or securitylevel=2(AuthPriv).
|
int | no |
|
0 |
bulk | Whether to use bulk SNMP requests.
|
int | no |
|
1 |
community | SNMPv1 and SNMPv2 community string. Required when version= |
str | no | ||
contextname | SNMPv3 context name. |
str | no | ||
privpassphrase | SNMPv3 privacy passphrase. Used when securitylevel= |
str | no | ||
privprotocol | SNMPv3 privacy protocol. Used when securitylevel=
|
int | no |
|
0 |
securitylevel | SNMPv3 security level.
|
int | no |
|
0 |
securityname | SNMPv3 security name. |
str | no | ||
version | SNMP version.
|
int | no |
|
2 |
Option | Description | Type | Required | Choices | Default |
---|---|---|---|---|---|
name | The macro name. |
str | yes | ||
type | The macro type. |
str | no |
|
text |
value | The macro value. |
str | yes |
MIT
Jim Tarpley