Skip to content

progserega/matrix_zabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo have 2 systems:

  1. simple alert-script for zabbix for send alert evets to matrix
  2. bot, witch can answer to matrix user current situation in zabbix: how match problem now (in controlled by current user).

Setup:

  1. pip install matrix_client
  2. Create zabbix account on matrix-server.
  3. Create rooms for users and add users (who will be receive zabbix-alerts). Remember pars user-room_id
  4. Accept invite from zabbix-account by each users.
  5. cp config.py.example config.py
  6. edit config.py.example - add zabbix accounts info (login and pass).
  7. In zabbix add script as send-script. And for specificied user add his room_id as params for script.

for test send, you may exec script manualy:

./matrix_send_message.py 'matrix_room_id' 'zabbix subject' 'zabbix event body text'

For run bot:

./matrix_zabbix_bot.py

or setup systemd service by ./matrix_zabbix_bot.service or ./matrix_zabbix_bot_without_watchdog.service

About

Script for send zabbix alerts to matrix rooms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published