Agent Monitoring - GWPOA Agent Monitor Script (modified)

Agent Monitoring - GWPOA Agent Monitor Script (modified)


I read this article:

The article says to use the Agent Monitoring Monitor script, running as a cron job. My POA is running on SLES10, but from time to time the GroupWise POA breaks. For a normal restart (in my case), I need to manually delete folders:


As a result, I cannot use AUTOMATE RESTART.


I've modified this script so it renames these folders to unique names and then restarts the POA:

declare -i CNT=0
NDT=`date +%Y%m%d%H%M%S`

CNT=`ps -aef | grep -v grep | grep -c '@mrpp.poa'`
if [ $CNT -eq 0 ]
echo "Restarting MRPP POA" `! date` >> /var/log/novell/groupwise/gwagentchk.log
echo "$SIN.$NDT" >> /var/log/novell/groupwise/gwagentchk.log
echo "$SOUT.$NDT" >> /var/log/novell/groupwise/gwagentchk.log
/etc/init.d/grpwise start mrpp.mrpd &


This will be the new name: .../wpcsin.20071230183001
The time format is: yyyymmddhhmmss
Labels (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
6 of 6
Last update:
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.