|
1 | 1 | # http_monitor |
2 | 2 | py3status module for monitoring http services |
| 3 | + |
| 4 | +## Prerequisites |
| 5 | + |
| 6 | +This is an i3 / py3status module, so you'll need those first off. |
| 7 | + |
| 8 | +## Installation |
| 9 | + |
| 10 | +```bash |
| 11 | +git clone git@github.com:mcgillij/http_monitor.git ~/.i3/py3status/ |
| 12 | +``` |
| 13 | + |
| 14 | +## Configuration |
| 15 | + |
| 16 | +Next you will need to add the services you want to monitor, and optionally choose some appropriate emoji's. |
| 17 | + |
| 18 | +Here's an excerpt from my configuration file located at *~/.config/i3/i3status.conf*. |
| 19 | + |
| 20 | +**~/.config/i3/i3status.conf** |
| 21 | + |
| 22 | +```bash |
| 23 | +... |
| 24 | +general { |
| 25 | + colors = true |
| 26 | + interval = 15 |
| 27 | +} |
| 28 | + |
| 29 | +order += "http_monitor apache" |
| 30 | +order += "http_monitor medusa" |
| 31 | +order += "http_monitor pihole" |
| 32 | +order += "http_monitor nextcloud" |
| 33 | +order += "http_monitor plex" |
| 34 | +order += "http_monitor virtualbox" |
| 35 | +order += "http_monitor airsonic" |
| 36 | +order += "clock" |
| 37 | +order += "mail" |
| 38 | +... |
| 39 | + |
| 40 | +http_monitor 'nextcloud' { |
| 41 | + service_location = "http://yourserver:8181" |
| 42 | + service_name = '⛅' |
| 43 | +} |
| 44 | + |
| 45 | +http_monitor 'virtualbox' { |
| 46 | + service_location = "http://yourserver:81/vb/" |
| 47 | + service_name = '💻' |
| 48 | +} |
| 49 | + |
| 50 | +http_monitor 'plex' { |
| 51 | + service_location = "http://yourserver:32400/web/index.html#" |
| 52 | + service_name = '🎥' |
| 53 | +} |
| 54 | + |
| 55 | +http_monitor 'airsonic' { |
| 56 | + service_location = "http://yourserver:4040" |
| 57 | + service_name = '🍃' |
| 58 | +} |
| 59 | + |
| 60 | +http_monitor 'pihole' { |
| 61 | + service_location = "http://yourserver:80" |
| 62 | + service_name = '🕳️ ' |
| 63 | +} |
| 64 | + |
| 65 | +http_monitor 'apache' { |
| 66 | + service_location = "http://yourserver:81" |
| 67 | + service_name = '🪶' |
| 68 | +} |
| 69 | + |
| 70 | +http_monitor 'medusa' { |
| 71 | + service_location = "http://yourserver:8081" |
| 72 | + service_name = '🐍' |
| 73 | +} |
| 74 | +``` |
| 75 | +## Configuration Options |
| 76 | + |
| 77 | +You can pass in the following configuration options: |
| 78 | + |
| 79 | +* service_location |
| 80 | +* service_name |
| 81 | +* timeout |
| 82 | +* cache_timeout |
| 83 | + |
0 commit comments