summaryrefslogtreecommitdiff
path: root/statuspage/render.sh
diff options
context:
space:
mode:
authorbatsumaru <>2026-07-01 16:52:22 +0900
committerbatsumaru <>2026-07-01 16:52:22 +0900
commita034c6724381b172ba4b6d36357682c44f18b8de (patch)
treeacb122f89c9432d56f3964c9a29d99ee1cf8647e /statuspage/render.sh
parentbb3567aa4bd5d03fcd0fa74eea42381f159227b0 (diff)
Add pf visibility and a wg-quick watcher check, add a neutral row status
checks/pf.sh reports pf enabled/disabled, state table usage (warn/down as it nears the configured limit), and the loaded filter/nat rule count, then lists each active rule as its own row for at-a-glance visibility into what's actually being enforced. Those rule rows use a new "info" status (gray square) rather than "ok" - they're not a health check on any individual rule, so a green square there would misleadingly imply otherwise. render.sh maps info -> gray; anything else still falls back to red. checks/wg-watcher.sh checks the route-monitor process wg-quick spawns to react to WAN interface/address changes - it isn't rc.d-managed, so there's no `service status` for it, hence the new proc_running helper in lib/common.sh (pgrep -f based). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'statuspage/render.sh')
-rwxr-xr-xstatuspage/render.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/statuspage/render.sh b/statuspage/render.sh
index 22df5e7..a5602f0 100755
--- a/statuspage/render.sh
+++ b/statuspage/render.sh
@@ -85,6 +85,7 @@ function htmlesc(s) {
function sqclass(status) {
if (status == "ok") return "green"
if (status == "warn") return "yellow"
+ if (status == "info") return "gray"
return "red"
}
@@ -128,6 +129,7 @@ END {
print ".green { background:#3c3; }"
print ".yellow { background:#cc3; }"
print ".red { background:#c33; }"
+ print ".gray { background:#666; }"
print ".dim { color:#888; font-size: 0.85em; }"
print "</style>"
print "</head>"