Explorar el Código

Aligned some more script-definitions across the board.

Michael Honkoop hace 1 semana
padre
commit
d6e502202b
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      localchecks/groupwise.sh

+ 3 - 3
localchecks/groupwise.sh

@@ -51,7 +51,7 @@ then
             echo "DEBUG:We found a $SERVICE gwMTA process ID: $gwMTAProcess"
         fi
         gwMTAListener=$(ss -lpn | grep "$gwMTAProcess" |awk '{print $5}' | grep -E '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'| sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') 
-        if [ ! -z "$gwMTAListener" ]
+        if [[ -n "$gwMTAListener" ]]
         then
             if [ "$debug" -eq 1 ]
             then
@@ -102,7 +102,7 @@ then
             then
                 echo "DEBUG:We found no listeners for the $SERVICE gwPOA process with process ID: $gwPOAProcess"
             fi
-            echo "P \"Groupwise POA\" status=0.5;;;1 $SERVICE Post Office Agent is running with PID: $gwPOAProcess but not listening."
+            echo "P \"$SERVICE POA\" status=0.5;;;1 $SERVICE Post Office Agent is running with PID: $gwPOAProcess but not listening."
         fi
     else
         if [ "$debug" -eq 1 ]
@@ -160,7 +160,7 @@ then
         then
             echo "DEBUG:We found atleast one $SERVICE gwAdmin listener: $gwAdminListener"
         fi
-        echo "P \"$SERVICE AdminService\" count=1;;;1 $SERVICE AdminService process is running with PID: $gwAdminProcess and listening.\n $gwAdminListener"
+        echo "P \"$SERVICE AdminService\" status=1;;;1 $SERVICE AdminService process is running with PID: $gwAdminProcess and listening.\n $gwAdminListener"
     else
         if [ "$debug" -eq 1 ]
         then