This is telegram bot for server monitoring. This bot can send messages to your telegram id Tested on ubuntu 18.04 & python 3.6.9
- CPU load
- RAM load
- Network
- CPU Utilization
- RAM Load
- Disk I/O
- Network perfomance
- Ping test
- High CPU Utilization
- High RAM load
- Network degradation
- Check CPU load
- Check RAM load
- Check disk usage
- Check disk i/o
- Check server ping
- Alalyze server traceroute
- Get top processes
- Check uptime
- Check network load
- Make a speedtest
- Alert if node is down
- Alert if node is out of sync
- Alert if node produce less blocks than expected
- Validator info:
- Pool name
- Pubkey
- Stake
- Blocks produced and expected
- Node logs
- Create telegram bot and get Api Token with @BotFather.
- Send to your new bot command /start
- Clone bot to server
cd $HOME && git clone -v https://github.com/ama31337/serverbot.git && cd ./serverbot && chmod +x ./installsbot.sh
- Open ./config.py and insert your bot API and your telegram id.
- Run script ./installsbot.sh for Ubuntu/Debian and ./installsbot_centos.sh for CentOS, source your bash or zsh to make bot start/stop commands working
./installsbot.sh
source ${HOME}/.bash_aliases
source ${HOME}/.zshrc
- Backup your old config and pull changes from git
cd $HOME/serverbot && mv config.py config.py.bak && git pull
- Compare the configs and adjust if necessary
- Restart bot
botstop
botstart
If you make any changes in config you need to restart your bot. To start, stop or check status you can use commands in bash:
botstart
botstop
botstatus
If you get History load error, remove bot files from /tmp and from serverbot db dirs
sudo rm -rf /tmp/*.log
sudo rm -rf /tmp/*.png
sudo rm ${HOME}/serverbot/db/*
Find in bot.py telebot.logger.setLevel(logging.ERROR) and change ERROR to DEBUG, restart serverbot service and execute
$ sudo journalctl -e -u serverbot > ~/serverbot/servicelog.log
If near tools not working, make sure what you've near is /usr/bin, if not:
which near
near_path=$(which near)
sudo ln -s ${near_path} /usr/bin/near
If bot was helpful to you, stake with us --> @lux.poolv1.near