summaryrefslogtreecommitdiff
path: root/statuspage/checks/wireguard.sh
diff options
context:
space:
mode:
Diffstat (limited to 'statuspage/checks/wireguard.sh')
-rw-r--r--statuspage/checks/wireguard.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/statuspage/checks/wireguard.sh b/statuspage/checks/wireguard.sh
new file mode 100644
index 0000000..3a899e5
--- /dev/null
+++ b/statuspage/checks/wireguard.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# checks/wireguard.sh
+# wg0 interface: at least one recent handshake means the tunnel is alive.
+set -eu
+
+DIR=$(dirname "$0")
+. "$DIR/../lib/common.sh"
+
+STATUS=$(wg_status wg0)
+json_line "host services" "wireguard (wg0)" "" "$STATUS"