elastalert
elastalert copied to clipboard
Zabbix alert module error
Hi,
I'm using docker image bitsensor/elastalert:3.0.0-beta.1 to run the elastalert server. I created a new alert using zabbix as an alert module. Here is the my rule file -
`es_host: es_server_address es_port: 9200 name: test-rule type: frequency num_events: 1 timeframe: seconds: 10 filter:
query: query_string: query: "cs-method:POST" index: logstash* timestamp_field: "@timestamp" alert: zabbix zbx_sender_host: zabbix_server_address zbx_sender_port: 10051 zbx_host: elastalert-server zbx_item: elastalert-item` Now I'm getting the following error in elastalert server logs - 12:02:11.551Z ERROR elastalert-server: ProcessController: ERROR:root:Could not load rule rules/test-rule.yaml: Error initiating alert ['zabbix']: Could not import module zabbix: need more than 1 value to unpack 12:02:11.568Z ERROR elastalert-server: ProcessController: ERROR:root:Error connecting to SMTP host: {} Can anyone help me to solve this error?