Coder Social home page Coder Social logo

telegram-server-monitor's Introduction

Telegram Server Monitor

Monitoring service writen in Python3 to be hosted on your own server.

Commands

Monitor your server and query usage and network information.
/usage - CPU and Memory information
/users - Active users
/disks - Disk usage

Shell
/shell $command - Execute shell command

Systemctl service manage
/service start $name - Start service
/service status $name - Status of service
/service restart $name - Restart service
/service kill $name - Send signal to processes of a unit
/service stop $name - Stop service

Backend healthcheck
/health alive - Set healthcheck to alive
/healt dead - Set healthcheck to dead

You do not like me anymore?
/stop - Sign off from the monitoring service

Installation

Talk to @BotFather on Telegram

  • Type /start to start a conversation with the bot father.
  • Type /newbot and follow the instructions to create our own bot.
  • Remember the access token - you will need it later.
  • You may configure your bot by setting a name or picture.

Configure your linux server

# Create a special user for the bot
sudo adduser telegram --gecos "" --disabled-password

# Install Python 3 and its package manager
sudo apt-get install python3 python3-pip

# Install Python Requests and PSUtil Library
sudo python3 -m pip install requests psutil --upgrade

Download and install Telegram Server Monitor

# Change to the created user
su telegram
cd ~

git clone https://github.com/hasdfa/telegram-server-monitor.git
cd telegram-server-monitor
cp config.template.py config.py

# Edit the config file with your favorite editor
nano config.py

telegram-server-monitor's People

Contributors

hasdfa avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.