zabbix_send
Send item values to a Zabbix server.
Description
Send item values to a Zabbix server via Zabbix sender protocol.
Parameters
Parameter |
Type |
Required |
Default |
Comment |
---|---|---|---|---|
items | dict|list[dict] |
Yes |
- |
List of items or dict of item to send. Item must have following keys: hostname, key, and value. |
port | int |
No |
10051 |
Zabbix server port. |
server | str |
No |
localhost |
Zabbix server address. |
Examples
# Send two items to Zabbix server.
# Output: No output
- zabbix_send:
name: "zabbix_send"
server: "localhost"
port: 10051
items:
- {"hostname": "foo", "key": "bar", "val": 1}
- {"hostname": "foo", "key": "foobar", "val": 1}
# Send items from flowdata to Zabbix server.
# Output: No output
- zabbix_send:
name: "zabbix_send"
items: "{{ fd.zabbix_item }}"