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 |
If this parameter is set to True, the data is stored in the blackboard rather than in the flowdata. By default, the key in the blackboard is set to the node name. To customize the key, specify the out_field parameter. |
out_field | str |
No |
None |
The key for the data in the blackboard. If out_bb is set to False, this parameter is ignored. |
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" }