zabbix_get_item

Get Zabbix item with Zabbix API

Description

  • Get Zabbix item with Zabbix API

Parameters

Parameter

Type

Required

Default

Comment

filter

dict

No

None

Filter to get the result mathed.

out_bb

bool

No

False

out_field

str

No

None

output

list[str]

No

None

Properties to be returned.

password

str

No

Zabbix

Password for Zabbix API.

url

str

No

localhost

URL for Zabbix server

user

str

No

root

User name for Zabbix API.

Examples

# Get Zabbix items only matched Template EPICS
# Output: [{'key_': 'item.key1',  'name': 'foo, 'itemid': 1}]
- zabbix_get_item:
    name: "zabbix_get"
    url: "http:/localhost"
    user: "Admin"
    password: "Zabbix"
    output: ["itemid", "name", "key_"]
    filter: { "key_": null, "host": "Template EPICS" }