summaryrefslogtreecommitdiff
path: root/statuspage/checks/wireguard.sh
blob: 3a899e504cdd5f15f550683f3085a54f78d45566 (plain)
1
2
3
4
5
6
7
8
9
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"