Skip to content

Using available terms in zabbix rule type #812

Closed Locked Answered by timeforplanb123
timeforplanb123 asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for unclear question.

My task is very simple. I have ~500 hosts in zabbix. I need to send "1" to the zabbix item of each of these hosts, when the elastalert2 frequency rule is triggered (now this is a simple rule that works every time, when a syslog message appears in elasticsearch).

The name of each such host is stored in the elasticsearch hostname field. But, how do I specify the name of each host in zbx_host?

When i use this syntax:

alert:
- "zabbix"
zbx_sender_host: "192.168.0.1"
zbx_sender_port: 10051
zbx_host: hostname
# each zabbix host has zabbix_host_item
zbx_key: "zabbix_host_item"

i get warning:

WARNING:elastalert:Missing zabbix host 'hostname' or host's item 'zabbix_hos…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@SysAdmLS
Comment options

@timeforplanb123
Comment options

Answer selected by jertel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants