ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » HACMP MQManager Monitoring Question.....

Post new topic  Reply to topic
 HACMP MQManager Monitoring Question..... « View previous topic :: View next topic » 
Author Message
csmith28
PostPosted: Fri Aug 11, 2006 1:33 pm    Post subject: HACMP MQManager Monitoring Question..... Reply with quote

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
View user's profile Send private message
csmith28
PostPosted: Wed Aug 16, 2006 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 16, 2006 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
csmith28
PostPosted: Thu Aug 17, 2006 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » HACMP MQManager Monitoring Question.....
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.