diff options
| author | batsumaru <> | 2026-07-01 16:25:42 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-07-01 16:25:42 +0900 |
| commit | 358106287b28bffa8505b67fe623f77a3fbceae3 (patch) | |
| tree | 8d0fe44894090313330685136b25c5e6b3083b9c /statuspage/checks/jail-www.sh | |
| parent | aa73d4e03d0905b884cde1ed3c2f0bdf35f5ef30 (diff) | |
Auto-discover jails and add WireGuard peer info to status page
Replace the per-jail check scripts with checks/jails.sh, which lists
running jails via jls and resolves each one's IPv4 (falling back to
jexec+ifconfig for VNET jails, which don't set the ip4.addr jail
parameter). New jails now show up without adding a script; the
trade-off is a stopped jail just disappears rather than showing down,
since jls only lists what's running.
checks/wireguard.sh now also reports each configured peer's allowed-IP
and time since last handshake, parsed from `wg show wg0 dump`.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'statuspage/checks/jail-www.sh')
| -rwxr-xr-x | statuspage/checks/jail-www.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/statuspage/checks/jail-www.sh b/statuspage/checks/jail-www.sh deleted file mode 100755 index 7b6274e..0000000 --- a/statuspage/checks/jail-www.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# checks/jail-www.sh -# www VNET jail: jail-up check, then nginx-inside-jail http check. -set -eu - -DIR=$(dirname "$0") -. "$DIR/../lib/common.sh" - -JAIL_STATUS=$(jail_status www) -json_line "jails" "www jail" "" "$JAIL_STATUS" - -HTTP_STATUS=$(port_check 192.168.100.20 80) -json_line "jails" " -> http :80" "" "$HTTP_STATUS" |
