Network Monitoring System using Python and Telegram
This repository contain python script to doing Network Monitoring System using Python and send the notification to the Telegram
To run this repository, you need some python library installed on your computer.- Python 2.7
- pyping
- telepot
- Create Telegram bot, this telegram bot will used to notify us about the status of server. You can follow tutorial on https://docs.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-telegram?view=azure-bot-service-4.0
- Clone this repository
- git clone https://github.com/arrosid/nms-python-telegram.git
- cd nms-python-telegram
- Install requirement library
- virtualenv -p python2 venv
- source venv/bin/activate
- pip install -r requirement
- Edit script.py. Fill the 'your_token', 'your_chat_id', and your_server
- Run the python script and wait for the telegram notification
- sudo python2 script.py
- If you want to run this script automaticcally, you can check crontab and run.sh file