Zabbix in Telegram Script
1.31K subscribers
8 photos
21 links
Channel for updates of tool "Zabbix in Telegram"
https://github.com/ableev/Zabbix-in-Telegram
Group chat: @ZbxTg
Download Telegram
25.02.2016
What's new:
disable_web_page_preview. Disables link previews for links in this message. You can set it with another parameter as --disable_web_page_preview or right in zabbix action as zbxtg;disable_web_page_preview
• Parse type: markdown and html. https://core.telegram.org/bots/api#markdown-style + https://core.telegram.org/bots/api#html-style, allows to format some part of messages. Plain text by default. Available as parameter --markdown/--html or as setting in zabbix action zbxtg;markdown/zbxtg;html
• Code style formatting
• TelegramAPI / ZabbixAPI classes optimized
• More debug added
• Channels support. https://github.com/ableev/Zabbix-in-Telegram/issues/23. At firts you need to set bot as admin of a channel. Sending available by unique identifier for the target chat or username of the target channel (in the format @channelusername). And "unique identifier isn't working yet. Example: ./zbxtg.py @Zabbix_in_Telegram "https://github.com/ableev/Zabbix-in-Telegram/issues/23" test --channel

https://github.com/ableev/Zabbix-in-Telegram
01.03.2016
dev branch!
• python3 capability – fixed all types of errors
• added reply-to graph in case when graph appeared before text message, see example below

Checkout: https://github.com/ableev/Zabbix-in-Telegram/tree/dev
Before: mixed sequence sometimes.
Now: graph as a reply-to to the origin message.
05.04.2016
dev merged to master.
https://github.com/ableev/Zabbix-in-Telegram/pull/34
• Fixed http/https proxy settings
• Replaced _content method with text method in requests calls
• Graphs are now sending as replies to text messages, all graphs are silent messages
• Fixed chmod in Python 3

Good news, now we have public super group: https://telegram.me/ZbxTg
20.04.2016
dev branch.
• Handle migrated groups to supergroups
• Got rid of sys.exit in classes
• Notification about unavailability to get graph without broken notification at all
• Minor changes (some parts of variables migrated to classes)

Checkout: https://github.com/ableev/Zabbix-in-Telegram/tree/dev
Some of you know the pull request about emoji support [ https://github.com/ableev/Zabbix-in-Telegram/pull/36/commits/0d7d1d8206f5f7bd1018eb47526614837c371c77 ].
I've changed some logic in that case, see forward message and example.
Will be deployed soon.

$ python zbxtg.py ableev "Test trigger with emoji" "Some {{info}} and {{ok}}. Omg, we have {{disaster}} in production. Looks like {{hankey}}, it's a {{problem}}. {{fire}} {{fire}} {{fire}}, {{bomb}}"
Test trigger with emoji
Some ℹ️ and . Omg, we have in production. Looks like 💩, it's a . 🔥 🔥 🔥, 💣
Channel photo updated
Forwarded from Ilia Ableev
Added the ability to update last PROBLEM without sending OK, check out dev branch.
You will need to add zbx_tg_update_messages and zbx_tg_matches variables to the config for that.
PROBLEM: test
OK: test
Now we have the ability to send a location map (useful when you have filled inventory fields), details in https://github.com/ableev/Zabbix-in-Telegram/issues/48. Check the dev branch.
Simple daemon that can answer with trigger list, check the dev branch. Little documentation in the https://github.com/ableev/Zabbix-in-Telegram/issues/53