From 68204a8140810bb81d744d99691bf28b9ea688c4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 1 Jan 2024 23:34:40 +0300 Subject: [PATCH] tweak... Signed-off-by: Alex A. Naanou --- check-status | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-status b/check-status index 1a52978..60e0c22 100755 --- a/check-status +++ b/check-status @@ -66,6 +66,7 @@ declare -A HANDLERS HANDLERS[tcp]=check-port HANDLERS[udp]=check-port +# XXX this seems to be broken... check-port(){ local udp= if [[ "${1:0:3}" == "udp" ]] ; then @@ -81,7 +82,7 @@ check-port(){ local res=$(timeout $TIMEOUT nc -vz${udp} $target $port 2>&1) - if [[ "$res" =~ .*open$ ]] ; then + if [[ $res =~ .*open$ ]] ; then echo ERROR else echo OK