Monitor if your homelab's public connection dies
This will ping a site of your choice every few seconds as a keep-alive. If connection fails it will start a stopwatch until connection resumes and send outage times to a Discord webhook.
(Debian & Ubuntu | You must be logged in as root)
- Make sure Python is installed using
python -V
. If this doesn't return something similar to "Python x.x.x" Please runsudo apt update && sudo apt upgrade -y && sudo apt install python3 -y
, then rerunpython -V
- Run
mkdir /isp-monitor && curl -o /isp-monitor/main.py https://raw.githubusercontent.com/imlayered/isp-monitor/main/main.py && curl -o /isp-monitor/config.json https://raw.githubusercontent.com/imlayered/isp-monitor/main/config.json
- Configure your
config.json
file. Make sure you modify the Discord webhook URL. - Grab isp-monitor.service and run
nano /etc/systemd/system/isp-monitor.service
, then paste the code into that file. Hit control+O to save, then control+X to return to console. - Run
systemctl enable isp-monitor && systemctl start isp-monitor && systemctl status isp-monitor
- (Optional, but greatly appreaciated) Star the repo. You are now done 🎊
Report bugs or suggest stuff to this thread