Zabbix Notifications with graphs in Telegram


Zabbix Notifications with graphs in Telegram

Join us in our Telegram group via this link:

Subscribe to our channel:

Rate on


  • Graphs based on latest data are sent directly to your messenger
  • You can send messages both in private and group chats
  • Channels support
  • Saves chatid as a temporary file
  • Simple markdown and HTML are supported
  • Emoji in messages


  • Simple zabbix’s management via bot’s commands
  • Ability to send complex graph or part of screen

Configuration / Installation

First of all: You need to install the requests module for python, this is required for operation! To do so, enter pip install requests in your commandline!

  • Put in your AlertScriptsPath directory, the path is set inside your zabbix_server.conf
  • Put in the same location if you want to send messages to the group chat
  • Create 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
  • Create readonly user in Zabbix (for getting graphs images from zabbix)
  • Set proxy host:port in if you need an internet proxy
  • Add new media for Telegram in Zabbix web interface with these settings:
  • Add another one if you want to send messages to the group
  • Note that Zabbix 3.0 has different settings for that step, see it there:
  • Send a message to your bot via Telegram, e.g. “/start”
  • If you are in group chat, just mention your bot, e.g. @ZbxTgDevBot ping
  • Create a new action like this:
  • Add the appropriate Media Type to your user

  • The username is CASE-SENSITIVE

  • 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

  • Private:

  • Group:


You can use markdown or html formatting in your action: +


  • You can use the following command to send a message from your command line: ./ "<username>" "<message_subject>" "<message_body>" --debug
  • For <username> substitute your Telegram username, NOT that of your bot (case-sensitive)
  • For <message_subject> and <message_body> just substitute something like “test” “test” (for Telegram it’s doesn’t matter between subject and body
  • You can omit the ", these are optional

Known issues


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

Leave a Reply

Your email address will not be published. Required fields are marked *