|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| handle Qmgr stop event message in real time | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | nsakthi | 
			  
				|  Posted: Wed Jun 24, 2020 1:29 am    Post subject: handle Qmgr stop event message in real time |   |  |  
		  | Novice
 
 
 Joined: 20 Dec 2012Posts: 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 |  |  
		  |  |  
		  | bruce2359 | 
			  
				|  Posted: Wed Jun 24, 2020 3:21 am    Post subject: Re: handle Qmgr stop event message in real time |   |  |  
		  |  Poobah
 
 
 Joined: 05 Jan 2008Posts: 9486
 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 |  |  
		  |  |  
		  | hughson | 
			  
				|  Posted: Wed Jun 24, 2020 2:28 pm    Post subject: |   |  |  
		  |  Padawan
 
 
 Joined: 09 May 2013Posts: 1967
 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 |  |  
		  |  |  
		  | fjb_saper | 
			  
				|  Posted: Thu Jun 25, 2020 4:45 am    Post subject: |   |  |  
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 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 |  |  
		  |  |  
		  |  |  |  
  
	|    |  | 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
 
 |  |  |  |