|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
HACMP MQManager Monitoring Question..... |
« View previous topic :: View next topic » |
Author |
Message
|
csmith28 |
Posted: Fri Aug 11, 2006 1:33 pm Post subject: HACMP MQManager Monitoring Question..... |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
OK I have just set up my first HACMP (standby) Cluster. Two nodes, 1 MQManager in a single Resource Group.
I didn't like the way the hamqm_running script provided in support pack mc91 relied upon the contents of the /var/mqm/qmgrs/QMGR/qmstatus.ini file so we built a script using the dspmq command.
Code: |
if [[ `/usr/bin/dspmq | grep $QM |grep -c Quiescing` = 1 ]]
then
echo MQ is currently stopping, exiting
exit 0
fi
STATUS=`/usr/bin/dspmq | grep $QM |grep -c Running`
if [[ $STATUS = 0 ]]
then
exit 1
else
exit 0
fi |
A result of 0 will mean HACMP will take no action. A result of 1 will cause HACMP to attempt to restart the MQManager.
My question is, can any of you think of a better way to do this? _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Aug 16, 2006 2:47 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
I found a better way of doing this using
Code: |
echo "end" | runmqsc |
instead of the dspmq command. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 16, 2006 4:46 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Both of those only work if there is a default qmgr. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Aug 17, 2006 2:35 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
jefflowrey wrote: |
Both of those only work if there is a default qmgr. |
Mmmm yeah, I realize that but both would work if I specified the MQManager name for example:
dspmq MQMGRNAME
or
echo "end" | runmqsc MQMGRNAME
The point is the script that was provided by IBM in the mc91 support pack relied on monitoring the status of the MQManager by looking in the qmstatus.ini file. I didn't like that and I'm not sure what the dspmq script does.
In the past I have run dspmq and it echoed that the MQManager was (Running) but it the MQManager in question wasn't by any means healthy.
So "echo "end" | runmqsc" actually enters the MQSC and exits it with a return code of 0 if the MQManager is healthy or it will hang if the MQManager is hung or it will exit with a return code not = to 0 if the MQManager is not running so.
HACMP will react to attempt to restart the MQManager if:
A. the monitor script gets no response
B. the monitor script gets a response not = 0
The response we have set up is that HACMP will attempt to do a gracefule restart of the MQManager. If that fails it will kill all the mqm processes, clear all the shared memory segments and semaphores that are owned by the mqm user and then willl restart the MQManager.
It will attempt this once and if it fails HACMP will move the resource group to the other member of the cluster and attemtp to start the MQManager there. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|