|
@@ -4,13 +4,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
gwMTA=1
|
|
|
|
|
|
-
|
|
|
+
|
|
|
gwPOA=1
|
|
|
|
|
|
-
|
|
|
+
|
|
|
gwIA=1
|
|
|
|
|
|
|
|
@@ -69,15 +69,30 @@ then
|
|
|
gwPOAProcess=$(ps -ef | grep "gwpoa" | grep -v grep | awk '{print $2}')
|
|
|
if [ ! -z "$gwPOAProcess" ]
|
|
|
then
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG:We found a gwPOA process ID: $gwPOAProcess"
|
|
|
+ fi
|
|
|
gwPOAListener=$(ss -lpn | grep $gwPOAProcess |awk '{print $5}' | grep -E '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | sort -u | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' )
|
|
|
if [ ! -z "$gwPOAListener" ]
|
|
|
then
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ echo "DEBUG:We found atleast one gwPOA listener: $gwPOAListener"
|
|
|
+ fi
|
|
|
echo "P \"Groupwise POA\" status=1;;;1 GroupWise Post Office Agent is running with PID: $gwPOAProcess and listening.\n $gwPOAListener"
|
|
|
else
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG:We found no listeners for the gwPOA process with process ID: $gwPOAProcess"
|
|
|
+ fi
|
|
|
echo "P \"Groupwise POA\" status=0.5;;;1GroupWise Post Office Agent is running with PID: $gwPOAProcess but not listening."
|
|
|
fi
|
|
|
else
|
|
|
- echo "P \"GroupWise POA\" status=0;;;1 GroupWise Post Office Agemt process is not Running."
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG: gwPOA is enabled in config, but no processes could be found."
|
|
|
+ fi
|
|
|
+ echo "P \"GroupWise POA\" status=0;;;1 GroupWise Post Office Agemt process is not Running."
|
|
|
fi
|
|
|
fi
|
|
|
|