zabbix in telegram · “zabbix in telegram” / zbxtg • june 24, 2015 – bot api launched •...
TRANSCRIPT
![Page 1: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/1.jpg)
Zabbix in Telegram
Ilya Ableev · 16th of September
empowering the alerts
![Page 2: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/2.jpg)
Standard – everyone use it: • Emails • SMS
Custom / third-party – according to needs: Tasks trackers, Jabber, Skype, Slack, HipChat, WhatsApp, … Telegram!
Alerts
![Page 3: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/3.jpg)
• Bot API, which is quite simple – don’t need to learn everything
• Powerful enough to cover simple cases
• Everything is supported officially, no need to install “hack” tools
Why Telegram?
![Page 4: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/4.jpg)
Telegram Bot API – is simple
![Page 5: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/5.jpg)
“Zabbix in Telegram” / ZbxTg
If it’s so simple – why do I need some “tool”?
![Page 6: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/6.jpg)
“Zabbix in Telegram” / ZbxTg
• June 24, 2015 – Bot API launched
• Jul 15, 2015 – First commit of ZbxTg
• Jan 2, 2016 – Rewritten to Python
• Aug 19, 2016 – Prototype of interactive bot
![Page 7: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/7.jpg)
ZbxTg
• Obtains user id, you need only username
• Sends graphs – yeah!
• Allows to format text: markdown and html
• Locations included
![Page 8: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/8.jpg)
How it looks like
![Page 9: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/9.jpg)
Maps
Emojis 😍
![Page 10: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/10.jpg)
Graphs
![Page 11: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/11.jpg)
Graphs
Scale
![Page 12: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/12.jpg)
Graphs
Scale more!
![Page 13: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/13.jpg)
Markdown / HTML
![Page 14: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/14.jpg)
How to configure?
Action:
Last value: {ITEM.LASTVALUE1} zbxtg;graphs zbxtg;graphs_period=1800 zbxtg;itemid:{ITEM.ID1} zbxtg;title:{HOST.HOST} - {TRIGGER.NAME}
{{problem}} Free space on {HOST.HOST}
![Page 15: Zabbix in Telegram · “Zabbix in Telegram” / ZbxTg • June 24, 2015 – Bot API launched • Jul 15, 2015 – First commit of ZbxTg • Jan 2, 2016 – Rewritten to Python •](https://reader036.vdocuments.site/reader036/viewer/2022062605/5fddad6f001fd01ead0a9efb/html5/thumbnails/15.jpg)
Thank you!
https://github.com/ableev/Zabbix-in-Telegram
use dev branch :)