#Zabbix alert bot for telegram
- Install redis-server:
apt install redis-server systemctl enable redis-server systemctl start redis-server
- Clone global brunch to your server
git clone -b global https://github.com/amalgamm/zabbix_tg_bot.git
- Enter Telegram Bot directory
cd zabbix_tg_bot/
- Install requirements packages
pip3 install -r requirements.txt
- create and edit config.py file:
token = 'FILL THIS FIELD' # Copy Telegram API token here redis_server = 'FILL THIS FIELD' # Redis-server ip address redis_db = 0 # Redis-server database number listen_int = '0.0.0.0' # WebServer listeting interface, used for zabbix incoming messages listen_port = 4000 # WebServer listening port, used for zabbix incoming messages
- run bot with python3 app.py or create service