jooola / zabbix-matrix-webhook

GNU General Public License v3.0
36 stars 8 forks source link

How to Create Matrix Media Type #9

Closed facb69 closed 3 years ago

facb69 commented 3 years ago

Hi there, I'm trying to use this webhook but I think I'm missing something. I followed the README instructions but there are no information about creating the Matrix media type. I tried different ways but it keeps failing. Last error was: SyntaxError: parse error (line 1) Can someone try to help me out, please? Thank you.

jooola commented 3 years ago

The configuration of the web hook can be found here: https://github.com/jooola/zabbix-matrix-webhook#zabbix-webhook-configuration

If you still can't figure out what is going wrong, I'll first need more information about your setup otherwise I am blind.

facb69 commented 3 years ago

Looks I don't know how to create the Matrix Media Type

Captura de tela_2021-08-24_15-23-50

facb69 commented 3 years ago

Here's the user configuration

Captura de tela_2021-08-24_15-25-12

jooola commented 3 years ago

The script section seem to be wrong, and your parameters as well. Do a clean import of the media_matrix.yml file, and try again.

jooola commented 3 years ago

I just update the setup documentation, maybe it helps ?

facb69 commented 3 years ago

I'll trying it right now!

facb69 commented 3 years ago

Sorry, it didn't work. Error: SyntaxError: parse error (line 1) Zabbix is 5.2

jooola commented 3 years ago

Please provide more information, otherwise I can't really help you.

facb69 commented 3 years ago

Sorry to insist but here's what I did:

Here are all the screens

Captura de tela_2021-08-24_17-32-56

Captura de tela_2021-08-24_17-35-24

Captura de tela_2021-08-24_17-35-57

facb69 commented 3 years ago

Hope you can help but I'll understand if I'm bothering too much. Thanks anyway.

jooola commented 3 years ago

Please read the Zabbix documentation on:

media_matrix.yml is not an alert script.

facb69 commented 3 years ago

Ok. I never used any other way but alert scripts. I'll look into it. I thank you and apologize.

facb69 commented 3 years ago

@jooola I finally made it! Thank you so much for the code and, mostly, the pacience. :smiley: