|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ACE11..17:get active mon profile for flow with a schema |
« View previous topic :: View next topic » |
Author |
Message
|
john.ormerod |
Posted: Tue Apr 05, 2022 9:14 am Post subject: ACE11..17:get active mon profile for flow with a schema |
|
|
Apprentice
Joined: 14 Feb 2017 Posts: 49
|
Hello
I can't find a way to get monitoring fully active for the TemperatureConverter sample. its message flow is in the 'gen' schema.
I can do this for an App whose msgflows do not have a schema, using both the mqsichangeflowmonitoring command and the Admin API's attach-monitoring-profile?profile={profile-file-name}&project={policy-project-name}
When the App's msgflow is viewed in the web admin gui,
the Persisted column has values of 'inherit' and a '-' for the proifile.
the Active column has values: 'active' and '{policy-name}:profile-name'.
Monitoring events are generated.
However for the TemperatureConverter....
the Admin API's attach-monitoring-profile has no effect at all.
the mqsichangeflowmonitoring works partially, producing:
- the Persisted column has values of 'active' and '{policy-name}:profile-name'
- the Active column has values of 'active' and '-' for the profile.
Monitoring events are not generated.
I assume, that I need to add the schema name somewhere - but where?
the profile file is: TemperatureConverter.monprofile.xml
the policy project is TemperatureConverterPolicy
I have tried several variations without success
The command I used is:
Code: |
mqsichangeflowmonitoring ACE11_17_DEV -e njamsDev -k TemperatureConverter -f gen.TemperatureConverter -c active --monitoring-profile {TemperatureConverterPolicy}:TemperatureConverter |
I would be grateful for any help given.
Regards, John |
|
Back to top |
|
 |
timber |
Posted: Thu Apr 07, 2022 5:07 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
would you mind clarifying what you mean by this?:
Quote: |
I can do this for an App whose msgflows do not have a schema |
|
|
Back to top |
|
 |
john.ormerod |
Posted: Fri Apr 08, 2022 5:06 am Post subject: |
|
|
Apprentice
Joined: 14 Feb 2017 Posts: 49
|
Thanka for replying - I had been waitng for an email propmt and thought I would check.
I can get monitoring established for msgflows without a schema name.
I used both the mqsichange command and the http Admin API.
Monitoring events are published.
I can't get monitoring established when a msgflow that a schema.
I used the CustomerDB sample to illustrate this, as it's a 'known quantity'.
I hope this clarifies my ambiiguity.
I have a Java app that uses the http api.
FWIW, this problem doesn't occur in IIB 10, using the Integration API.
Rgds, John |
|
Back to top |
|
 |
timber |
Posted: Fri Apr 08, 2022 9:26 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Sorry, I was being a bit slow. I think you are referring to a 'broker schema'. So it all works when your flow is in the default schema, but monitoring does not work (cannot be enabled) for flows that are not in the default broker schema.
I think the next questions are
1. What steps are you following to enable the monitoring? (please give exact details of where you are clicking, what/where you are typing)
2. If you use the command line, are you getting any error messages reported when you using mqsichangeflowmonitoring?
3. Have you tried using mqsireportflowmonitoring? If so, what was the output before/after you tried to enable monitoring? |
|
Back to top |
|
 |
john.ormerod |
Posted: Tue Apr 12, 2022 1:37 am Post subject: ACE11..17:get active mon profile for flow with a schema |
|
|
Apprentice
Joined: 14 Feb 2017 Posts: 49
|
Hello Timber.
'broker schema' - sorry, I'm a java developer and only use IIB/ACE to create testing conditions.
It was good to be encouraged to step back and think about how to show what I had found. Sometimes just doing that solves the problem - sadly, not this time. However, I am clearer about what does what.
I show the Admin API results for an App with a msgflow without a schema, and the ACE sample Service 'TemperatureConverter' that has a msgflow: gen.TemperatureConverter
APPLICATION (OrderCreate) THAT HAS A MESSAGE FLOW (HTTPOrderInput) WITHOUT A BROKER SCHEMA
DELETE AND RE-DEPLOY THE APP
Code: |
GET http://{{host}}:{{port}}/apiv2/servers/njamsDev/applications/OrderCreate/messageflows/HTTPOrderInput |
Code: |
"properties": {
"monitoring": "inherit",
"monitoringProfile": "",
"name": "HTTPOrderInput",
},
"active": {
"monitoring": "active",
"monitoringProfile": "",
}, |
ATTACH MONITORING PROFILE - monprofile.xml files are in OrderCreatePolicy
Code: |
POST http://{{host}}:{{port}}/apiv2/servers/njamsDev/applications/OrderCreate/messageflows/HTTPOrderInput/attach-monitoring-profile?profile=HTTPOrderInput&project=OrderCreatePolicy |
RESULT
Code: |
"properties": {
"monitoring": "inherit",
"monitoringProfile": "",
"name": "HTTPOrderInput",
},
"active": {
"monitoring": "active",
"monitoringProfile": "{OrderCreatePolicy}:HTTPOrderInput",
}, |
The Web UI shows the mon profile in the 'Active' column, but not in the 'Persisted' one.
** Monitoring Events are published **
=========================
SERVICE (TemperatureConverter) THAT HAS A MESSAGE FLOW (TemperatureConverter) WITH A BROKER SCHEMA (gen)
DELETE AND RE-DEPLOY THE SERVICE
Code: |
GET http://{{host}}:{{port}}/apiv2/servers/njamsDev/services/TemperatureConverter/messageflows/gen.TemperatureConverter |
Code: |
"properties": {
"monitoring": "inherit",
"monitoringProfile": "",
"name": "gen.TemperatureConverter",
},
"active": {
"monitoring": "inactive",
"monitoringProfile": "",
}, |
ATTACH MONITORING PROFILE - TemperatureConverter.monprofile.xml file is in TemperatureConverterPolicy
TemperatureConverter POLICY
Code: |
{
"hasChildren": false,
"name": "TemperatureConverter",
"type": "policy",
"uri": "/apiv2/servers/njamsDev/policies/TemperatureConverterPolicy/policy/TemperatureConverter",
"properties": {
"name": "TemperatureConverter",
"type": "Policy"
},
"descriptiveProperties": {
"className": "UserDefined",
"lastModified": "2022-04-05 14:14:08",
"locationOnDisk": "TemperatureConverterPolicy/TemperatureConverter.policyxml",
"policyType": "UserDefined",
"shortFileName": "TemperatureConverter.policyxml",
"size": 178
},
} |
Code: |
POST http://{{host}}:{{port}}/apiv2/servers/njamsDev/services/TemperatureConverter/messageflows/gen.TemperatureConverter/attach-monitoring-profile?profile=TemperatureConverter&project=TemperatureConverterPolicy |
RESULT
Code: |
"properties": {
"monitoring": "inherit",
"monitoringProfile": "",
"name": "gen.TemperatureConverter",
},
"active": {
"monitoring": "active",
"monitoringProfile": "",
}, |
** NOTHING HAS CHANGED & Monitoring Events are NOT published **
++++++++++++++++ Using MQSI commands +++++++++++++++++
DELETE AND RE-DEPLOY THE SERVICE
*** mqsireportflowmonitoring ***
C:\>mqsireportflowmonitoring ACE11_17_DEV -e njamsDev -k TemperatureConverter -f gen.TemperatureConverter
BIP15069I: Integration Server 'njamsDev' Active state='active', profile=''
BIP15070I: Integration Server 'njamsDev' Configured state='active', profile=''
BIP15069I: Application 'TemperatureConverter' Active state='active', profile=''
BIP15070I: Application 'TemperatureConverter' Configured state='inherit', profile=''
BIP15069I: MessageFlow 'gen.TemperatureConverter' Active state='active', profile=''
BIP15070I: MessageFlow 'gen.TemperatureConverter' Configured state='inherit', profile=''
BIP8071I: Successful command completion.
***
ATTACH MON PROFILE AND ACTIVATE
*** mqsichangeflowmonitoring ***
C:\>mqsichangeflowmonitoring ACE11_17_DEV -e njamsDev -k TemperatureConverter -f gen.TemperatureConverter -c active --monitoring-profile {TemperatureConverterPolicy}:TemperatureConverter
BIP8071I: Successful command completion.
***
*** mqsireportflowmonitoring ***
C:\>mqsireportflowmonitoring ACE11_17_DEV -e njamsDev -k TemperatureConverter -f gen.TemperatureConverter
BIP15069I: Integration Server 'njamsDev' Active state='active', profile=''
BIP15070I: Integration Server 'njamsDev' Configured state='active', profile=''
BIP15069I: Application 'TemperatureConverter' Active state='active', profile=''
BIP15070I: Application 'TemperatureConverter' Configured state='inherit', profile=''
BIP15069I: MessageFlow 'gen.TemperatureConverter' Active state='active', profile=''
BIP15070I: MessageFlow 'gen.TemperatureConverter' Configured state='active', profile='{TemperatureConverterPolicy}:TemperatureConverter'
BIP8071I: Successful command completion.
***
CHECK WITH ADMIN API
"properties": {
"monitoring": "active",
"monitoringProfile": "{TemperatureConverterPolicy}:TemperatureConverter",
"name": "gen.TemperatureConverter",
},
"active": {
"monitoring": "active",
"monitoringProfile": "",
},
in the Web UI, the mon profile is in the 'Persisted' column but NOT in the 'Active' one.
** Monitoring Evens are NOT published **
Methinks that something is not well when it comes to msgflows with a broker schema. And, most/all IIB/ACE customers wil use schemas.
It's the Admin API that my Java app uses. Which renders it useless for 'real world' use... unless there is something that I need to change.
I'll be grateful for any help you can provide.
John |
|
Back to top |
|
 |
timber |
Posted: Tue Apr 12, 2022 11:59 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
I can't see anything obviously wrong with what you're doing. As you say, it seems to behave differently when the flow is in a broker schema.
Others are welcome to point out something that we're both missing...but otherwise I think your best bet is to report this issue to IBM support. |
|
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
|
|
|
|