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 » handle Qmgr stop event message in real time

Post new topic  Reply to topic
 handle Qmgr stop event message in real time « View previous topic :: View next topic » 
Author Message
nsakthi
PostPosted: Wed Jun 24, 2020 1:29 am    Post subject: handle Qmgr stop event message in real time Reply with quote

Novice

Joined: 20 Dec 2012
Posts: 18

Hello,

I was trying to implement a simple alerting mechanism in our environment using MQ event messages. So I created a separate Queue manager act like a HUB which receives the event messages from all other queue managers, and use the programs to format these messages and further send email alerts.

I have a problem in handling the Qmgr stop event messages (MQRQ_Q_MGR_STOPPING), which will only be sent to remote HUB QMGR when the affected QMGR is active again. I understand QMGR doesn't allow any further action when it is ending with immediate option. but I want to handle this stop event message in real time to send the alert. Is there any option to handle this? please advise
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Jun 24, 2020 3:21 am    Post subject: Re: handle Qmgr stop event message in real time Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

nsakthi wrote:
Hello,

I was trying to implement a simple alerting mechanism in our environment using MQ event messages.

Hmmmm. This approach presumes that a qmgr is in a healthy state such that can, in fact, create event messages.

What if channels to/from hub are not running?

You might want to broaden your approach to include the dspmq control command, and the MQSC commands ping qmgr and display qmstatus all
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.


Last edited by bruce2359 on Thu Jun 25, 2020 5:32 am; edited 2 times in total
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Jun 24, 2020 2:28 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

TH HUB queue manager presumably has a channel to the queue manager in question (in order to receive events), so perhaps you can use the status of the channel as an indicator, since the channels are ended before a queue manager ends, so I don't see how a stop queue manager event could be delivered anywhere else as you say.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Thu Jun 25, 2020 4:45 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

hughson wrote:
TH HUB queue manager presumably has a channel to the queue manager in question (in order to receive events), so perhaps you can use the status of the channel as an indicator, since the channels are ended before a queue manager ends, so I don't see how a stop queue manager event could be delivered anywhere else as you say.

Cheers,
Morag

This does not cover and idle queue manager in perfect working condition...
The best would be to try and connect to the queue manager (PCF with qmstatus call?). If the qmgr is shutdown the call will fail...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » handle Qmgr stop event message in real time
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.