monitor the server with the help of python3 and grpc protocol
git clone https://github.com/mar-coding/monitoring_with_grpc.git
cd monitoring_with_grpc
python3 -m venv venv
source venv/bin/activate
sudo chmod +x ./setup.sh
pip install -r req.txt
./setup.sh
python server.py
python monitor.py
-
create a telegram bot in '@botfather' and get your bot's token.
-
create '.env' file and write this to it.(must be done in root directory):
TOKEN=bottoken
- run below code
python telegramHandler.py
- Solve the timing problem to logging become realtime