Open ognjen011 opened 4 years ago
@ognjen011 Were you able to find this? If yes then It would be great if you could share it here.
I just did this so far as per documentation:
alert:
"zabbix"
zabbix:
but i am now seeing:
did not find expected key in "rules/zabbix.yaml", line 17, column 3
Whats more i am seeing another problem in line which was fine before. If i make changes and remove "zabbix:" Then i am getting a python error
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/elastalert-0.2.1-py3.6.egg/elastalert/util.py", line 26, in get_module module_path, module_class = module_name.rsplit('.', 1) ValueError: not enough values to unpack (expected 2, got 1)
I am not too sure how is this supposed to work or does it even work.
@ognjen011 After looking into the code, I think "zbx_key" parameter is also required which is not mentioned in the doc.
Possible but i still have the same problem. I am not sure of the formatting, there has to be something at the zabbix alert indentation as a second value. I added zbx_key but it has not made any difference for me.
Hello all! I'm also looking for a way to send ElastAlert alerts to Zabbix. Any solution so far? That would be great if you can share.
Regards
Hi all,
Finally found a solution that worked for me. In case this might be useful to anyone, here's how you can manage to send ElastAlert messages to Zabbix.
I hope this will help you also.
Regards
See my comment on #2586
Hi all,
Finally found a solution that worked for me. In case this might be useful to anyone, here's how you can manage to send ElastAlert messages to Zabbix.
- create a "zabbix trapper" item under a host in your Zabbix server
- create a script which uses zabbix_sender to send informations it gets as parameters to a Zabbix server
- add command rule to your ElastAlert rule so that your previous script will be called along with the desired parameters
- In your Zabbix server interface, you can create a trigger to handle the received values as it suits your use case.
I hope this will help you also.
Regards
hi essodjolo. Can you tell me more about what to do on the zabbix server interface? For example, what type should be selected for the new item and what is the key.
Hi,The item type should be "zabbix trapper". You are free to give the key whichever name you like, but you have to specify that key name while sending the data with zabbix_sender.RegardsEssodjolo KAHANAM ---- On mer., 09 déc. 2020 06:48:10 +0100 notifications@github.com wrote ----
Hi all, Finally found a solution that worked for me. In case this might be useful to anyone, here's how you can manage to send ElastAlert messages to Zabbix.
create a "zabbix trapper" item under a host in your Zabbix server create a script which uses zabbix_sender to send informations it gets as parameters to a Zabbix server add command rule to your ElastAlert rule so that your previous script will be called along with the desired parameters In your Zabbix server interface, you can create a trigger to handle the received values as it suits your use case.
I hope this will help you also. Regards
hi essodjolo. Can you tell me more about what to do on the zabbix server interface? For example, what type should be selected for the new item and what is the key.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
Hi,The item type should be "zabbix trapper". You are free to give the key whichever name you like, but you have to specify that key name while sending the data with zabbix_sender.RegardsEssodjolo KAHANAM ---- On mer., 09 déc. 2020 06:48:10 +0100 notifications@github.com wrote ---- Hi all, Finally found a solution that worked for me. In case this might be useful to anyone, here's how you can manage to send ElastAlert messages to Zabbix. create a "zabbix trapper" item under a host in your Zabbix server create a script which uses zabbix_sender to send informations it gets as parameters to a Zabbix server add command rule to your ElastAlert rule so that your previous script will be called along with the desired parameters In your Zabbix server interface, you can create a trigger to handle the received values as it suits your use case. I hope this will help you also. Regards hi essodjolo. Can you tell me more about what to do on the zabbix server interface? For example, what type should be selected for the new item and what is the key. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you for your reply. I have now created items on zabbix web.
Hello,
does anyone have an actual example of sending alerts to zabbix, template of what it should look like?