Telebix: receive commands and send information from an infrastructure monitored by Zabbix

Telebix

Telebix

Telebix is an application that communicates with a Bot on the Telegram to receive commands and send information from an infrastructure monitored by Zabbix, which also sends messages in real time if any problems occur in the infrastructure, it is totally written in Python with Shell Script and has a graphical interface to help the network administrator more intuitively. The application can run on any computer as long as all credentials are properly posted.

Telebix

Installation

git clone https://github.com/Warflop/Telebix.git
cd Telebix
chmod +x setup.sh
sudo ./setup.sh –install

Configuration

In the Settings tab are the fields to be populated with the Zabbix login information, bot token and Telegram user ID (or Group ID).

The token you already have after creating the Bot.

To get the user ID you can use the “GET ID” button in the settings tab after talking to the bot or add manually,
access the address below by changing TOKENHERE by the token you copied, there will be your user ID.

You can use the ID of any group that you are entered as well.

https://api.telegram.org/botTOKENHERE/getUpdates

Commands Available

[+] /graphs hostname – List images graphs of specific host
[+] /webs – List monitored web scenarios
[+] /status – List status of zabbix
[+] /events – List last five events
[+] /help – Help and information
[+] /hosts – List hosts
[+] /users – List users

How to use

Creating a bot

In the search bar on Telegram, type “BotFather” and send the command “/newbot”.

The BotFather will ask for a name for your bot after it will ask for a username as well.

Copy the generated access Token.

Send any message to your bot by Telegram.

Copyright (C) 2018 Warflop

Source: https://github.com/Warflop/