All Projects → ableev → Zabbix In Telegram

ableev / Zabbix In Telegram

Licence: mit
Zabbix Notifications with graphs in Telegram

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Zabbix In Telegram

Telegram Bot Github
Allows to you receive GitHub notifications right in the Telegram
Stars: ✭ 103 (-85.49%)
Mutual labels:  bot, telegram-bot, telegram, notifications
Telegram Bot Api
First Telegram Bot API node.js library
Stars: ✭ 205 (-71.13%)
Mutual labels:  bot, telegram-bot, telegram
Telegram Rat
Windows Remote Administration Tool via Telegram. Written in Python
Stars: ✭ 201 (-71.69%)
Mutual labels:  bot, telegram-bot, telegram
Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (-68.59%)
Mutual labels:  bot, telegram-bot, telegram
Tgbot Cpp
C++ library for Telegram bot API
Stars: ✭ 439 (-38.17%)
Mutual labels:  bot, telegram-bot, telegram
Telebot
Write Telegram bots in Rust with Tokio and Futures
Stars: ✭ 179 (-74.79%)
Mutual labels:  bot, telegram-bot, telegram
Telegraf
Modern Telegram Bot Framework for Node.js
Stars: ✭ 5,178 (+629.3%)
Mutual labels:  bot, telegram-bot, telegram
Bitprophet
Node crypto trading platform for Binance exchange.
Stars: ✭ 166 (-76.62%)
Mutual labels:  bot, telegram, notifications
Swiftybot
How to create a Telegram, Facebook Messenger, and Google Assistant bot with Swift using Vapor on Ubuntu / macOS.
Stars: ✭ 247 (-65.21%)
Mutual labels:  bot, telegram-bot, telegram
checkmk-telegram-notify
Get alerted by Check_MK via Telegram bash script
Stars: ✭ 28 (-96.06%)
Mutual labels:  notifications, telegram, telegram-bot
The Guard Bot
The Guard, a Telegram bot to moderate groups.
Stars: ✭ 299 (-57.89%)
Mutual labels:  bot, telegram-bot, telegram
Telegram Bot
Ruby gem for building Telegram Bot with optional Rails integration
Stars: ✭ 433 (-39.01%)
Mutual labels:  bot, telegram-bot, telegram
Micro Bot
🤖 Zero-configuration Telegram bot runner
Stars: ✭ 173 (-75.63%)
Mutual labels:  bot, telegram-bot, telegram
Icopy
fclone telegram interface.Send commands to Telegram BOT for get a convience way to control fclone resources copy missions.
Stars: ✭ 188 (-73.52%)
Mutual labels:  bot, telegram-bot, telegram
Java Telegram Bot Tutorial
Java Telegram Bot Tutorial. Feel free to submit issue if you found a mistake.
Stars: ✭ 165 (-76.76%)
Mutual labels:  bot, telegram-bot, telegram
Example Bot
[WIP] An A-Z example of a PHP Telegram Bot.
Stars: ✭ 211 (-70.28%)
Mutual labels:  bot, telegram-bot, telegram
Pytg
Python package that wraps around Telegram messenger CLI. Send and receive messages, and more.
Stars: ✭ 365 (-48.59%)
Mutual labels:  bot, telegram-bot, telegram
Vk To Telegram Transfer Bot
Бот, пересылающий сообщения из чатов ВК в Telegram и обратно
Stars: ✭ 143 (-79.86%)
Mutual labels:  bot, telegram-bot, telegram
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+211.55%)
Mutual labels:  bot, telegram-bot, telegram
Tlg joincaptchabot
Telegram Bot to verify if users that join a group, are humans. The Bot send an image captcha for each new user, and kick any of them that can't solve the captcha in a specified time.
Stars: ✭ 226 (-68.17%)
Mutual labels:  bot, telegram-bot, telegram

Zabbix-in-Telegram

Zabbix Notifications with graphs in Telegram

Join us in our Telegram group via this link: https://t.me/ZbxTg

Subscribe to our channel: https://t.me/Zabbix_in_Telegram

Rate on share.zabbix.com: https://share.zabbix.com/cat-notifications/zabbix-in-telegram

Features

  • [x] Graphs based on latest data are sent directly to your messenger
  • [x] You can send messages both in private and group/supergroup chats
  • [x] Channels support (only public, but you can do it for private as well with dirty hack)
  • [x] Saves chatid as a temporary file
  • [x] Simple markdown and HTML are supported
  • [x] Emoji (you can use emoji instead of severity, see the wiki article) (zabbix doesn't support utf8mb4 encoding yet)
  • [x] Location map

TODOs

  • Simple zabbix's management via bot's commands – in dev state
  • Ability to send complex graph or part of screen

Configuration / Installation

READ WIKI IF YOU HAVE PROBLEM WITH SOMETHING: https://github.com/ableev/Zabbix-in-Telegram/wiki

First of all: You need to install the appropriate modules for python, this is required for operation! To do so, enter pip install -r requirements.txt in your commandline!

  • Put zbxtg.py in your AlertScriptsPath directory, the path is set inside your zabbix_server.conf
  • Put zbxtg_group.py in the same location if you want to send messages to the group chat (if you are using Zabbix 2.x version)
  • Create zbxtg_settings.py (copy it from zbxtg_settings.example.py) with your settings and save them in the same directory as the script, see example for layout
  • Create a bot in Telegram and get API key: https://core.telegram.org/bots#creating-a-new-bot
  • Create readonly user in Zabbix web interface (for getting graphs from zabbix)
  • Set proxy host:port in zbxtg_settings.py if you need an internet proxy (socks5 supported as well, the wiki will help you)
  • Add new media for Telegram in Zabbix web interface with these settings:
  • Add another one if you want to send messages to the group
Last value: {ITEM.LASTVALUE1} ({TIME})
zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid:{ITEM.ID1}
zbxtg;title:{HOST.HOST} - {TRIGGER.NAME}
  • Add the appropriate Media Type to your user

  • The username is CASE-SENSITIVE

  • If you don't have a username, you can use your chatid directly (and you need to google how to get it)

  • Group chats don't have URLs, so you need to put group's name in media type

  • Messages for channels should be sent as for private chats (simply add bot to your channel first and use channel's username as if it was a real user)

  • Private:

  • Group:

Annotations

zbxtg;graphs -- enables attached graphs
zbxtg;graphs_period=10800 -- set graphs period (default - 3600 seconds)
zbxtg;graphs_width=700 -- set graphs width (default - 900px)
zbxtg;graphs_height=300 -- set graphs height (default - 300px)
zbxtg;itemid:{ITEM.ID1} -- define itemid (from trigger) for attach
zbxtg;itemid:{ITEM.ID1},{ITEM.ID2},{ITEM.ID3} -- same, but if you want to send two or more graphs, use complex trigger
zbxtg;title:{HOST.HOST} - {TRIGGER.NAME} -- graph's title
zbxtg;debug -- enables debug mode, some logs and images will be saved in the tmp dir (temporary doesn't affect python version)
zbxtg;channel -- enables sending to channels
zbxtg;to:username1,username2,username3 -- now you don't need to create dedicated profiles and add media for them, use this option in action to send messages to those user(s)
zbxtg;to_group:Group Name One,Group Name Two -- the same but for groups

You can use markdown or html formatting in your action: https://core.telegram.org/bots/api#markdown-style + https://core.telegram.org/bots/api#html-style.

Debug

  • You can use the following command to send a message from your command line: ./zbxtg.py "@username" "first part of a message" "second part of a message" --debug
  • For @username substitute your Telegram username, NOT that of your bot (case-sensitive) OR chatid
  • For first part of a message and second part of a message just substitute something like "test" "test" (for Telegram it's doesn't matter between subject and body)
  • You can skip the " if it's one word for every parameter, these are optional

Known issues

MEDIA_CAPTION_TOO_LONG

If you see this error, it means that you rich the limit of caption with 200 symbols in it (Telegram API's limitaion). Such captions will be automatically cut to 200 symbols.

Zabbix 3.0 and higher (3.2, 3.4, 4.0, 4.2, 4.4)

https://github.com/ableev/Zabbix-in-Telegram/wiki/Working-with-Zabbix-3.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].