|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WMQ7 Trigger Monitor running script as what user |
« View previous topic :: View next topic » |
Author |
Message
|
williad |
Posted: Thu Sep 24, 2009 11:33 am Post subject: WMQ7 Trigger Monitor running script as what user |
|
|
Apprentice
Joined: 08 Sep 2005 Posts: 40 Location: London
|
Hi
Please can someone tell me how WMQ7 on solaris 10 is working in regards to triggering a perl script. The trigger monitor is running as mqm.
The perl script details are shown below is from a ls -l
-rwxr-xr-x 1 ua1eagle eagle 61275 Sep 17 16:40 AIFG_instance.pl
I put debug print statements in the script to outputs the environment variables LOGNAME, USER, and output of the id command
The output of which is shown below
LOGNAME = ua1eagle
USER = ua1eagle
id = uid=2003(ua1eagle) gid=2000(eagle) euid=2200(mqm) egid=2200(mqm)
now the script works as expected.
BUT
what i dont understand (because in another environment, i get different output and the script doesnt work) is if the trigger monitor is running as mqm when it runs the perl script, it looks like from the outputted variables that its running as ua1eagle. why isnt it running as mqm ( from your help with this, may help me to fix the problem with the other environment)
hope this make sense |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Sep 24, 2009 3:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You might want to make sure that the permissions on runmqtrm are the same in both systems. (-rwxr-xr-x ??)  _________________ MQ & Broker admin |
|
Back to top |
|
 |
williad |
Posted: Fri Sep 25, 2009 12:15 am Post subject: |
|
|
Apprentice
Joined: 08 Sep 2005 Posts: 40 Location: London
|
HI
Its the same on both systems, as per installation
-r-sr-s--- owned my mqm and group mqm |
|
Back to top |
|
 |
williad |
Posted: Fri Sep 25, 2009 5:27 am Post subject: |
|
|
Apprentice
Joined: 08 Sep 2005 Posts: 40 Location: London
|
Hi
Solved it.
The QMgr was built as a HA Qmgr using MC91. In the documentation it said that you had to make sure that the ha scripts were owned and grouped by mqm before you build the QMgr
the ha scripts that i had were owned by ts2mqm and grouped by mqm
So I guess thats was what the difference was, when i deleted the QMgr where i was getting the error, and built it properly with the ha scripts owned by mqm and grouped by mqm. the trigger monitor started to work as expected
So i guess it was a case of read the manual
Thank you all |
|
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
|
|
|
|