From 0f343eba5ba70dcc2674b6c85d45736c9da07503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hern=C3=A2ni=20Marques?= Date: Thu, 16 Jul 2026 15:55:54 +0200 Subject: [PATCH] scripts/nym: status.sh probe container and HTTP API --- scripts/nym/status.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/nym/status.sh diff --git a/scripts/nym/status.sh b/scripts/nym/status.sh new file mode 100755 index 0000000..a126d2a --- /dev/null +++ b/scripts/nym/status.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Probe koopa-nym container + local HTTP API +set -euo pipefail +HTTP="${NYM_HTTP:-http://127.0.0.1:9080}" +echo "=== podman ===" +podman ps -a --filter name=koopa-nym --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' || true +echo "=== listen ===" +ss -lntp 2>/dev/null | grep -E '9080|1789|1790|19000|51822' || true +echo "=== api /roles ===" +curl -sS -m 5 "${HTTP}/api/v1/roles" 2>/dev/null | head -c 500 || echo "(unreachable)" +echo +echo "=== api /health (if present) ===" +curl -sS -m 3 -o /dev/null -w "http=%{http_code}\n" "${HTTP}/api/v1/health" 2>/dev/null || true