|
@@ -109,12 +109,24 @@ then
|
|
|
gwIAListener=$(ss -lpn | grep $gwIAProcess |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 "$gwIAListener" ]
|
|
|
then
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG:We found atleast one gwIA listener: $gwIAListener"
|
|
|
+ fi
|
|
|
echo "P \"Groupwise GWIA\" status=1;;;1 GroupWise Internet Agent is running with PID: $gwIAProcess and listening.\n $gwIAListener"
|
|
|
else
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG:We found no listeners for the gwIA process with process ID: $gwIAProcess"
|
|
|
+ fi
|
|
|
echo "P \"Groupwise GWIA\" status=0.5;;;1 GroupWise Internet Agent is running with PID: $gwIAProcess but not listening."
|
|
|
fi
|
|
|
else
|
|
|
- echo "P \"GroupWise GWIA\" status=0;;;1 GroupWise Internet Agemt process is not Running."
|
|
|
+ if [ $debug -eq 1 ]
|
|
|
+ then
|
|
|
+ echo "DEBUG: gwIA is enabled in config, but no processes could be found."
|
|
|
+ fi
|
|
|
+ echo "P \"GroupWise GWIA\" status=0;;;1 GroupWise Internet Agemt process is not Running."
|
|
|
fi
|
|
|
fi
|
|
|
|