homadb / ServerMonitoring_TGBot

Telegram Bot with Python for getting information from the server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alt text

Server Monitoring Telegram Bot

SMTB is a Python script for monitoring your server and get report with telegram bot. With SMTB you can checking your server on your smartphone.

Create Telegram Bot

Create account on telegram and create a bot with @BotFather and get the token to access.

Installation

Use the package manager pip to install requirements.txt

pip install -r requirements.txt

Add Token

Edit the .env file and add your telegram bot token

Run the Script

python smtb.py

Make the program auto-run

crontab -e
* * * * * $(which python3) /root/serverreporter/main.py >> ~/cron.log 2>&1

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Telegram Bot with Python for getting information from the server


Languages

Language:Python 98.3%Language:Shell 1.7%