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 » Trigger monitor

Post new topic  Reply to topic Goto page 1, 2  Next
 Trigger monitor « View previous topic :: View next topic » 
Author Message
mnance
PostPosted: Thu Jun 03, 2004 10:18 am    Post subject: Trigger monitor Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

I have a Trigger Monitor that is setup to run as a service. All works well under Windows NT 4.0 sp6a. Once the server is upgraded to Windows Server 2003 it stops working. The service shows as Running but the runmqtrm.exe process is not running. When messages reach the queue they are not being processed. Trigger Depth is set for FIRST so it should process the messages once the first message hits the queue. If I stop/start the service everything is fine. However, I have over 800 servers that will need this action once they are upgraded. Has anyone heard of this problem or have any suggestions???
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
offshore
PostPosted: Thu Jun 03, 2004 11:37 am    Post subject: Reply with quote

Master

Joined: 20 Jun 2002
Posts: 222

mnance,

I think we all need some more information. What version of MQ and what CSD level. Also, when you say service are you running it as a MQ Service or did you set up a "NT" service?
Back to top
View user's profile Send private message Send e-mail
mnance
PostPosted: Thu Jun 03, 2004 11:41 am    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

Sorry about that. WebMQ 5.3 CSD04. The service is set up as an NT Service.
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Thu Jun 03, 2004 4:51 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Are you using the MA7K Support Pack to provide the Triger Monitor as a Windows Service?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
offshore
PostPosted: Fri Jun 04, 2004 3:17 am    Post subject: Reply with quote

Master

Joined: 20 Jun 2002
Posts: 222

Peter, I thought the MA7K was the client trigger support pac to run as a NT service.

Mnance mentioned that the runmqtrm.exe wasn't showing. Isn't the MA7K runmqtmc.exe???

Mnance, did you use the Windows resource kit to create a new service and have RUNMQTRM start? I think your best bet would to let MQ Series handle that service.

If you open the MQ Series services there is an option to add a new Trigger Monitor service.
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Fri Jun 04, 2004 4:11 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

ma7k is known primarily for work with Client Trigger Monitors. But if you read the documentation that comes with it, it tells you how to run it with the regular TM as well.

You have a lot more options going this route, since the config file for the support pac has many parameters.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
mnance
PostPosted: Fri Jun 04, 2004 4:19 am    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

I used a utility called instsrv.exe to install the NT service. The only problem with using MQ Explorer to create the Trigger Monitor is that I need the application that is being triggered to run under the account that the service running under, otherwise, it would not have the appropriate access.
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
mnance
PostPosted: Tue Jun 08, 2004 12:10 pm    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

I have noticed that after a reboot the NT service that I created using instsrv.exe and srvany.exe starts fine. However, it does not kick off the runmqtrm.exe process. I must stop/start the service in order to initialize the trigger monitor process. I have the service set up so that it depends on the MQSeriesServices service. So I know that MQ starts up before the new NT service.

Command used to create the service:
Instsrv IBDMQTRIG C:\Tech\srvany.exe

Ini File for Service

\Registry\Machine
System
CurrentControlSet
Services
IBDMQTRIG
Parameters

\Registry\Machine
System
CurrentControlSet
Services
IBDMQTRIG
Parameters
Application = REG_SZ C:\MQM\bin\runmqtrm.exe

\Registry\Machine
System
CurrentControlSet
Services
IBDMQTRIG
Parameters
AppParameters = REG_SZ -q Qname.INITQ

\Registry\Machine
System
CurrentControlSet
Services
IBDMQTRIG
DependOnGroup = REG_MULTI_SZ

\Registry\Machine
System
CurrentControlSet
Services
IBDMQTRIG
DependOnService = REG_SZ MQSeriesServices
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
JasonE
PostPosted: Wed Jun 09, 2004 12:25 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

Change the service to run a batch pgm. In the batch pgm, do something like:
echo %time% >> c:\temp\log.out
C:\MQM\bin\runmqtrm.exe -q Qname.INITQ >> c:\log.out 2>&1

(Note the 2>&1 as well!)

What happens on reboot now? What is listed in the file c:\log.out?
Back to top
View user's profile Send private message
mnance
PostPosted: Wed Jun 09, 2004 4:29 am    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

This is in the log file:

WebSphere MQ trigger monitor started.

Waiting for a trigger message


However, the runmqtrm.exe does not show up in task manager as a separate process. Before, the runmqtrm.exe was running in task manager under the user account specified by the service. Is that supposed to be the way it works?
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
JasonE
PostPosted: Wed Jun 09, 2004 5:06 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

In task manager, do you have, (and if so tick!) the box saying show processes for all users. My bet is because 2003 supports terminal services, you are only seeing a portion of the processes in the task list.

Alternatively use something like process explorer (www.sysinternals.com) to list the processes.

If you can see it, add to the columns the userid column, and what userid is it running under?

However, the log implies it does get up and running, so are you certain that a trigger message gets generated, and that something is expected to be done?
Back to top
View user's profile Send private message
mnance
PostPosted: Wed Jun 09, 2004 5:10 am    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

I have "show processes for all users" checked as well as the USERID column selected. It does not show up.
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed Jun 09, 2004 5:11 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you see an instance of cmd.exe or command.exe for the batch file, running for the user in question?

Try changing the batch file by adding 'start' before the runmqtrm command.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JasonE
PostPosted: Wed Jun 09, 2004 5:21 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

My guess is that the trigger monitor is terminating for some reason, but take a trace and email it to me (instructions sent via PM) and I'll take a look...
Back to top
View user's profile Send private message
mnance
PostPosted: Wed Jun 09, 2004 12:30 pm    Post subject: Reply with quote

Apprentice

Joined: 15 Aug 2002
Posts: 44

Back to the original way that I setup the service:

In the registry under the service I have:

AppDirectory: Path
Application: C:\mqm\bin\runmqtrm.exe
AppParameters: -q QName.INITQ

Once the server reboots the service starts up automatically but doesnt spawn the runmqtrm.exe process under the user account specified. I can then stop/start the service and all works fine....including the messages being processed on the queue. I guess this is really an O/S problem with using Srvany.exe to run the application as a service and not so much MQSeries.
_________________
Salvation can only be achieved through Jesus Christ, our Lord and Saviour.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Trigger monitor
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.