Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imlayered/isp-monitor
Monitor if your homelab's public connection dies
https://github.com/imlayered/isp-monitor
monitoring ping python
Last synced: about 2 months ago
JSON representation
Monitor if your homelab's public connection dies
- Host: GitHub
- URL: https://github.com/imlayered/isp-monitor
- Owner: imlayered
- License: mit
- Created: 2024-06-23T04:14:54.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T04:35:55.000Z (7 months ago)
- Last Synced: 2024-06-23T06:17:56.490Z (7 months ago)
- Topics: monitoring, ping, python
- Language: Python
- Homepage: https://encoded.sh/threads/isp-monitor-python-script.41/
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ISP Monitor
Monitor if your homelab's public connection diesThis 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.
## Install steps
(Debian & Ubuntu | **You must be logged in as root**)
1. Make sure Python is installed using ``python -V``. If this doesn't return something similar to "Python x.x.x" Please run ``sudo apt update && sudo apt upgrade -y && sudo apt install python3 -y``, then rerun ``python -V``
2. 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```
3. Configure your ``config.json`` file. Make sure you modify the Discord webhook URL.
4. Grab [isp-monitor.service](https://github.com/imlayered/isp-monitor/blob/main/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.
5. Run ``systemctl enable isp-monitor && systemctl start isp-monitor && systemctl status isp-monitor``
6. (Optional, but greatly appreaciated) Star the repo. You are now done 🎊Report bugs or suggest stuff to [this thread](https://encoded.sh/threads/isp-monitor-python-script.41/)