A simple script to notify Zabbix alert on Matrix
Go to file
root b2b84fd353 Add some doc 2019-12-27 13:48:51 +01:00
.gitignore Second commit 2019-12-27 13:38:43 +01:00
LICENSE Initial commit 2019-12-27 11:06:38 +01:00
README.md Add some doc 2019-12-27 13:48:51 +01:00
config.sample.ini Second commit 2019-12-27 13:38:43 +01:00
matrix-zabbix-alerting.sh Second commit 2019-12-27 13:38:43 +01:00

README.md

A simple script to notify Zabbix alert on Matrix

Requirement

You need a Matrix Server, Chat ID and user token for this script

Installation

  • Clone this repo where you want and move matrix-zabbix-alerting.sh into the alertingscript's folder of Zabbix (default is /usr/lib/zabbix/alertscripts/).
  • Copy config.sample.ini where you want (Example /etc/matrix-zabbix.ini) and edit it.
  • Go to your Zabbix server, Administration tab, Media type and clic on "Create media type".
  • Choose a name, set type to script and in "Script name" set matrix-zabbix-alerting.sh
  • On script parameters add 3 parameters : {ALERT.SENDTO}, {ALERT.SUBJECT} and {ALERT.MESSAGE}
  • Clic on create.

Enjoy