jefalexa / ping_monitor

This script is intended to run as a service on a RaspberryPi, but can run independently. It runs ping tests against a give IP address and alerts via text message using Twilio if the host does not respond.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ping_monitor

Add Twilio Info

Use twilio_info_example.py to create twilio_info.py Include in it your Twilio API credentials and the phone numbers the text message will be to/from.

Install PIP

python3 -m virtualenv env source env/bin/activate pip install -r requirements.txt

Run the script as a service

sudo cp ping_test.service /etc/systemd/system/ sudo systemctl start ping_test.service sudo systemctl enable ping_test.service

About

This script is intended to run as a service on a RaspberryPi, but can run independently. It runs ping tests against a give IP address and alerts via text message using Twilio if the host does not respond.


Languages

Language:Python 71.5%Language:Jupyter Notebook 26.8%Language:Shell 1.8%