Skip to content

altan-me/zabbix-matrix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Zabbix Matrix notifiers

Simple Zabbix Matrix notifiers (message and call). Use plain (no-e2e) events. Require python 3 with requests, urllib3, markdown, beautifulsoup4 modules. zabbix-matrix-call.py doesn't honor message text (third arg) and skips alerts with the subject starting with OK.

Install

apt:

apt-get install python3 python3-requests python3-urllib3 python3-markdown python3-bs4

pip:

pip3 install requests urllib3 Markdown beautifulsoup4

Put scripts in /usr/lib/zabbix/alertscripts

Modify URL and TOKEN variables using your matrix-synapse server url and user's access_token string.

Create new Media type in zabbix (Administration - Media types - Create media type) with Type = Script, Script name = zabbix-matrix.py or zabbix-matrix-call.py, Script parameters: {ALERT.SENDTO} , {ALERT.SUBJECT}, {ALERT.MESSAGE}.

About

Zabbix Matrix Notifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%