Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.37 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.37 KB

nms-python-telegram

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

Requirement

To run this repository, you need some python library installed on your computer.
  • Python 2.7
  • pyping
  • telepot

Setup

  1. 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
  2. Clone this repository
  3. Install requirement library
    • virtualenv -p python2 venv
    • source venv/bin/activate
    • pip install -r requirement
  4. Edit script.py. Fill the 'your_token', 'your_chat_id', and your_server
  5. Run the python script and wait for the telegram notification
    • sudo python2 script.py
  6. If you want to run this script automaticcally, you can check crontab and run.sh file