summaryrefslogtreecommitdiff
path: root/statuspage/checks/jail-cgit.sh
diff options
context:
space:
mode:
authorbatsumaru <>2026-07-01 15:38:51 +0900
committerbatsumaru <>2026-07-01 15:38:51 +0900
commitdfec6df2fb876fadb20d24a5bd8f4b4400a0f659 (patch)
tree3fc126f5bbaeef31b3a7a6d3e2afda968473c9b9 /statuspage/checks/jail-cgit.sh
Split monolithic status check.sh into modular check scripts
Replace the single-file prototype with independently-addable check scripts (checks/*.sh) that each emit JSONL rows, a shared helper lib, and one orchestrator/renderer (render.sh) that groups rows by section and writes the static status page. A broken check script now shows up as a down/warn row instead of crashing the whole render. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'statuspage/checks/jail-cgit.sh')
-rw-r--r--statuspage/checks/jail-cgit.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/statuspage/checks/jail-cgit.sh b/statuspage/checks/jail-cgit.sh
new file mode 100644
index 0000000..aabeacf
--- /dev/null
+++ b/statuspage/checks/jail-cgit.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# checks/jail-cgit.sh
+# cgit VNET jail: jail-up check, then nginx-inside-jail http check.
+set -eu
+
+DIR=$(dirname "$0")
+. "$DIR/../lib/common.sh"
+
+JAIL_STATUS=$(jail_status cgit)
+json_line "jails" "cgit jail" "" "$JAIL_STATUS"
+
+HTTP_STATUS=$(port_check 192.168.100.10 80)
+json_line "jails" " -> http :80" "" "$HTTP_STATUS"