💾 Archived View for gemini.mcgillij.dev › http_monitor.gmi captured on 2024-02-05 at 09:46:41. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
:author:
mcgillij
:category:
Python
:date:
2021-01-26 18:49
:tags:
Python, Linux, #100DaysToOffload, http
:slug:
i3-py3status-http-monitor
:summary:
Small http monitoring script that I wrote to keep track of some services running on my server.
:cover_image:
monitor.png
A small script written to monitor some services running on my server. The goal was to have the status reflected in my desktop’s status bar which is running
. If you’re running **i3**, **py3status** and have some services (or websites) you’d like to monitor feel free to use this module.
The script is available on
along with the installation directions.
[image: status bar with http_monitor]
git clone git@github.com:mcgillij/http_monitor.git ~/.i3/py3status/
Next you will need to add the services you want to monitor, and optionally choose some appropriate emoji’s.
... general { colors = true interval = 15 } order += "http_monitor apache" order += "http_monitor medusa" order += "http_monitor pihole" order += "http_monitor nextcloud" order += "http_monitor plex" order += "http_monitor virtualbox" order += "http_monitor airsonic" order += "clock" order += "mail" ... http_monitor 'nextcloud' { service_location = "http://yourserver:8181" service_name = '⛅' } http_monitor 'virtualbox' { service_location = "http://yourserver:81/vb/" service_name = '💻' } http_monitor 'plex' { service_location = "http://yourserver:32400/web/index.html#" service_name = '🎥' } http_monitor 'airsonic' { service_location = "http://yourserver:4040" service_name = '🍃' } http_monitor 'pihole' { service_location = "http://yourserver:80" service_name = '🕳️ ' } http_monitor 'apache' { service_location = "http://yourserver:81" service_name = '🪶' } http_monitor 'medusa' { service_location = "http://yourserver:8081" service_name = '🐍' }
You can pass in the following configuration options: