cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in IIB - User Exit 'dtwsmbagent' not found

m_jina_patra
Newcomer

Configured IIB to be accessible from Dynatrace appmon client as per the below link.

https://www.dynatrace.com/support/doc/appmon/insta...

C:\Program Files\IBM\IIB\10.0.0.3>mqsireportflowuserexits TESTNODE_IBM -e default
BIP8859I: User Exits active for integration node 'TESTNODE_IBM': dtwsmbagent.
BIP8071I: Successful command completion.

But getting below error when deploying any application to the above integration node, TESTNODE_IBM.

'A User Exit name 'dtwsmbagent' has been specified as active or inactive but that user exit was not provided by any library loaded by this integration server. No user message flows will be started until this is resolved. The list of user exits registered in this integration server is ''.'

Additional details -

C:\Program Files\IBM\IIB\10.0.0.3>echo "%MQSI_USER_EXIT_PATH%"
";C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib"

C:\Program Files\IBM\IIB\10.0.0.3>echo "%DT_HOME%"
"C:\Program Files\Dynatrace\Dynatrace 7.2"

Could anyone please help what is missing here?


5 REPLIES 5

m_jina_patra
Newcomer

Hello,

I changed the path of library from

C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib to

C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib64.

And that worked. Could instrument the EG and deploy applications there too.


Someone please help me with the next steps as I am not seeing any IIB applications in Dynatrace appmon client. Do we need to create System Profile there? Please guide me.


m_jina_patra
Newcomer

@Babar Q., Could you please help me in this regard?


Hello @Jina P.

I am providing the below steps we have taken for AIX or z/Linux but this should work for you as well.

First create an agent group and then add the logical names for the agents mapping e.g. your broker(s) name is ABC.

Please
follow below steps (1-5) on the ABC server to reconfigure the Dynatrace
agent and kindly note that the message broker needs to be restarted for changes to take effect.

1.Create
the file {$MQSI_WORKPATH}/common/profiles/dtwsmbagent.sh
with the following contents and give it execute permission.

#!/bin/sh

export DT_SERVER=10.10.10.10

export DT_HOME=/opt/apm/dynatrace-6.2

#If not set DT_AGENTNAME defaults to "WebSphere_MB"

export DT_AGENTNAME=ABC

#Per default we store the PurePath id in variables/dynaTrace-tag

#To store it in the Message Broker's environment, set variable
name/path with e.g.:

export DT_WSMBTAGPATH=/opt/apm/dynatrace-6.2/agent/lib64

if [ "$MQSI_VERSION_V" = "6" ]

then

export
MQSI_USER_EXIT_PATH=${MQSI_USER_EXIT_PATH}:${DT_HOME}/agent/lib

export MQSI_USER_EXIT_PATH64=${MQSI_USER_EXIT_PATH64}:${DT_HOME}/agent/lib64

else

export
MQSI_USER_EXIT_PATH=${MQSI_USER_EXIT_PATH}:${DT_HOME}/agent/lib64

export
MQSI_USER_EXIT_PATH32=${MQSI_USER_EXIT_PATH32}:${DT_HOME}/agent/lib

fi

2.
Open a terminal session as user with WebSphere MB administration
privileges and ensure that the Message Broker environment was set up (mqsiprofile was executed).

Add
below lines in your .bash_profile file and
also run the .bash_profile or below script
to make sure it is executed:

# run dtwsmbagent using below command

. /var/mqsi/common/profiles/dtwsmbagent.sh

Important note: Please run the env or set command as mqsi
user to ensure that above variables like DT_SERVER, DT_HOME, DT_AGENTNAME,
DT_WSMBTAGPATH, MQSI_USER_EXIT_PATH64 etc are set before you proceed with
restarting broker.

3.
Stop WebSphere MB:

mqsistop ABC

4.
Activate the Agent in WebSphere MB:

mqsichangebroker ABC or X -e dtwsmbagent

5.
Start WebSphere MB:

mqsistart ABC

Regards,

Babar


m_jina_patra
Newcomer

Hi @Babar Q.

Thanks for the details.

I already did the above steps mentioned by you, except setting DT_AGENTNAME and DT_WSMBTAGPATH as that was optional as per Dynatrace documentation.
Now by seeing your post, I changed those variables in dtwsmbagent.cmd as per the instructions given by you. But still not able to see IIB agent or applications in Dynatrace Appmon client.

Listing the steps below for you to check if I am missing anything -

1> Started Dynatrace Appmon server in Windows local machine.

2> In the same machine, created 'dtwsmbagent.cmd' in %MQSI_WORKPATH%/common/profiles and executed that with Admin access

In IIB Console, able to see the path of all variables set correctly.

C:\Program Files\IBM\IIB\10.0.0.3>echo "%MQSI_WORKPATH%"
"C:\ProgramData\IBM\MQSI"

C:\Program Files\IBM\IIB\10.0.0.3>echo %DT_SERVER%
localhost:9998

C:\Program Files\IBM\IIB\10.0.0.3>echo "%DT_WSMBTAGPATH%"
"C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib64"

C:\Program Files\IBM\IIB\10.0.0.3>echo "%DT_AGENTNAME%"
"TESTNODE_IBM"

C:\Program Files\IBM\IIB\10.0.0.3>echo "%DT_HOME%"
"C:\Program Files\Dynatrace\Dynatrace 7.2"

C:\Program Files\IBM\IIB\10.0.0.3>echo "%MQSI_USER_EXIT_PATH%"
";C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib64"

3> Restarted the broker and executed the below commands for Dynatrace configuration in IIB

C:\Program Files\IBM\IIB\10.0.0.3>mqsistop TESTNODE_IBM
BIP8071I: Successful command completion.

C:\Program Files\IBM\IIB\10.0.0.3>mqsilist
BIP1326I: Integration node 'TESTNODE_IBM' is stopped.
BIP8071I: Successful command completion.

C:\Program Files\IBM\IIB\10.0.0.3>mqsichangebroker TESTNODE_IBM -e dtwsmbagent
BIP8071I: Successful command completion.

C:\Program Files\IBM\IIB\10.0.0.3>mqsichangebroker TESTNODE_IBM -x "C:\Program Files\Dynatrace\Dynatrace 7.2\agent\lib64\dtagent.lel"
BIP8071I: Successful command completion.

C:\Program Files\IBM\IIB\10.0.0.3>mqsistart TESTNODE_IBM
BIP8096I: Successful command initiation, check the system log to ensure that the component started without problem and that it continues to run without problem.

C:\Program Files\IBM\IIB\10.0.0.3>mqsichangeflowuserexits TESTNODE_IBM -e default -a dtwsmbagent
BIP8071I: Successful command completion.

C:\Program Files\IBM\IIB\10.0.0.3>mqsireportflowuserexits TESTNODE_IBM -e default
BIP8854I: User Exits active for integration server 'default': dtwsmbagent.
BIP8859I: User Exits active for integration node 'TESTNODE_IBM': dtwsmbagent.

BIP8071I: Successful command completion.

4> Started Dynatrace AppMon client to view the applications in TESTNODE_IBM. But no IIB agent is displayed there.

Could you please help regarding point #4?


m_jina_patra
Newcomer

Able to see the Integration node now when I hit the service deployed in the EG. Otherwise it was not visible. Thank you @Babar Q.