Dear Developers,
I don't know if it is possible to implement but I would be interested in having a sort of "script" receiver, which would execute a user-defined (bash) script on alert events, like:
receivers:
- name: script
script_configs:
- script: /home/user/myalert.sh
If possible, working in a way that alert.sh either get alert json string as argument, or it would be even greater that the script could be templated (with like some {{label=''}} stuff).
I ask it because with using webhook I have to deploy another component to receive alert POSTs
(nor I can configure webhook to send GET/PUT/... with the desired content) and do something special I need.
In this way alertmanager would be more flexible. As I remember Zabbix can also run scripts on triggers.
What do you think?
Best regards,
Akos Hajnal
Dear Developers,
I don't know if it is possible to implement but I would be interested in having a sort of "script" receiver, which would execute a user-defined (bash) script on alert events, like:
receivers:
script_configs:
If possible, working in a way that alert.sh either get alert json string as argument, or it would be even greater that the script could be templated (with like some {{label=''}} stuff).
I ask it because with using webhook I have to deploy another component to receive alert POSTs
(nor I can configure webhook to send GET/PUT/... with the desired content) and do something special I need.
In this way alertmanager would be more flexible. As I remember Zabbix can also run scripts on triggers.
What do you think?
Best regards,
Akos Hajnal