From b3d64581f07cf9c689acfd6509c35925cae5fe11 Mon Sep 17 00:00:00 2001 From: wagesj45 Date: Fri, 1 Aug 2025 01:42:28 -0500 Subject: [PATCH] Update kuma-push.sh --- kuma-push.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kuma-push.sh b/kuma-push.sh index 2ecdfae..d4d6ca2 100644 --- a/kuma-push.sh +++ b/kuma-push.sh @@ -10,14 +10,14 @@ BASE="https://status.jordanwages.com/api/push" CURL_OPTS=(--silent --show-error --max-time 4) # --------------------------------------------------------------------------- # -# Small random delay so many VMs don’t hammer Kuma at the same second +# Small random delay so many VMs don't hammer Kuma at the same second sleep $(( RANDOM % 5 )) # 0-4 s # --------------------------------------------------------------------------- # push() { # id status msg ping curl "${CURL_OPTS[@]}" \ "${BASE}/${1}?status=${2}&msg=${3// /%20}&ping=${4}" \ - || true # don’t let a failed push abort the script + || true # don't let a failed push abort the script } check_http() { # url @@ -30,7 +30,7 @@ check_http() { # url check_service() { systemctl is-active --quiet "$1" && echo "up 0" || echo "down 0"; } check_docker() { docker inspect -f '{{.State.Running}}' "$1" &>/dev/null && echo "up 0" || echo "down 0"; } check_mount() { mountpoint -q "$1" && echo "up 0" || echo "down 0"; } -check_native() { echo "up 0"; } # simply reports “alive” +check_native() { echo "up 0"; } # simply reports "alive" # --------------------------------------------------------------------------- # # Iterate over YAML entries (null-delimited to survive spaces)