Browse Source

Update 'groupwise.sh'

added correct separation of ip:port for details in CheckMK
Michael Honkoop 1 year ago
parent
commit
bf0f36a17f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      groupwise.sh

+ 1 - 1
groupwise.sh

@@ -137,7 +137,7 @@ then
     then
         echo "DEBUG:We found a gwAdmin process ID: $gwAdminProcess"
     fi
-    gwAdminListener=$(ss -lpn| grep $gwAdminProcess | awk '{print $5}' | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort -u | sed 's/^::ffff://')
+    gwAdminListener=$(ss -lpn| grep $gwAdminProcess | awk '{print $5}' | grep -E '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort -u | sed 's/^::ffff://' | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
     if [ ! -z "$gwAdminListener" ]
     then
         if [ $debug -eq 1 ]