Zabbix with Telegram on ubuntu 16.4

Описание к видео Zabbix with Telegram on ubuntu 16.4

How to send zabbix alerts with telegram
using : zabbix 3.2 on ubuntu 16.4 server

commands and scripts download :
sudo apt-get update
sudo apt-get install python-pip -y
sudo pip install --upgrade pip
sudo pip install requests

scripts :
zbxtg.py
https://drive.google.com/open?id=0B6H...

zbxtg_settings.py
https://drive.google.com/open?id=0B6H...

sudo cp zbxtg.py /usr/local/share/zabbix/alertscripts/
sudo cp zbxtg_settings.py /usr/local/share/zabbix/alertscripts/
sudo chmod 755 /usr/local/share/zabbix/alertscripts/zbxtg.py
sudo chmod 755 /usr/local/share/zabbix/alertscripts/zbxtg_settings.py

Telegram botfather
/start
/newbot

sudo vim /usr/local/share/zabbix/alertscripts/zbxtg_settings.py

/usr/local/share/zabbix/alertscripts/zbxtg.py "telegram_username" "hello" "how are you ?"

{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}


Last value: {ITEM.LASTVALUE1} ({TIME})
zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid:{ITEM.ID1}
zbxtg;title:{HOST.HOST} - {TRIGGER.NAME}

Thanks
Alireza

Комментарии

Информация по комментариям в разработке