Comments (6)
The AMQ message is coming from the setmqenv call in the script - it's trying to set up LD_LIBRARY_PATH etc but the queue manager is not a local one so it fails. I will probably do something to mask that particular error, but you'd get a more serious problem if the MQ libraries could not then be found.
So you ARE connecting to the qmgr. Because otherwise you wouldn't have got a 2033 which can only come after opening a queue. But I can't tell why that is happening. Perhaps turning on the info or debug levels of logging would show more.
from mq-metric-samples.
Thank you Mark for your response:
We set the log level to debug, but the output messages not help us:
AMQ7048: The queue manager name is either not valid or not known.
IBM MQ metrics exporter for Prometheus monitoring
DEBU[0000] Monitored topics are '#'
INFO[0000] Connected to queue manager CSQ2
FATA[0030] MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_NO_MSG_AVAILABLE [2033]
From zOS MQ are observed messages in the dead letter queue
DLH .......3AMQ.D666228449CC74E3 CSQ2
DLH .......3AMQ.D666228449CC74E3 CSQ2
Regards ... Marcelo
from mq-metric-samples.
If there are messages in the DLQ, then the important field is going to be the reason code that shows why they were put there,
from mq-metric-samples.
The messages in the dead letter queue are these, we can not identify what causes them:
View CSQ2:CSQ2.DEAD.QUEUE + Top of 2
Command ===> Scroll CSR
Col 1 Insert Length 4194304 Record AT TOP Format HEX
****** **** Top of data ****
000001 DLH .......3AMQ.D6752F9683A49DE0 CSQ2
CDC40000000FCDD4CFFFFCFFFFCFFCCF4444444444444444444444444444CEDF44444444
438000010073148B46752696831494500000000000000000000000000000328200000000
----+----10---+----2----+----3----+----4----+----5----+----6----+----7--
000002 DLH .......3AMQ.D6752F9683A49DE0 CSQ2
CDC40000000FCDD4CFFFFCFFFFCFFCCF4444444444444444444444444444CEDF44444444
438000010073148B46752696831494500000000000000000000000000000328200000000
----+----10---+----2----+----3----+----4----+----5----+----6----+----7--
****** **** End of data ****
View CSQ2:CSQ2.DEAD.QUEUE + Top of 2
Command ===> Scroll CSR
Col 73 Insert Length 4194304 Record AT TOP Format HEX
****** **** Top of data ****
000001 .......4MQADMIN ....CSQ2
4444444444444444444444444444444444440001000FDDCCDCD40000CEDF444444444444
000000000000000000000000000000000000003100144814495000073282000000000000
--+----80---+----9----+----100--+----1----+----2----+----3----+----4----
000002 .......4MQADMIN ....CSQ2
4444444444444444444444444444444444440001000FDDCCDCD40000CEDF444444444444
000000000000000000000000000000000000003100144814495000073282000000000000
--+----80---+----9----+----100--+----1----+----2----+----3----+----4----
****** **** End of data ****
View CSQ2:CSQ2.DEAD.QUEUE + Top of 2
Command ===> Scroll CSR
Col 145 Insert Length 4194304 Record AT TOP Format HEX
****** **** Top of data ****
000001 2019072210392660...............................3............
444444444444FFFFFFFFFFFFFFFF0001000200000001000000000000000F000000000002
000000000000201907221039266000010004000300020001000000020073000200090008
+----150--+----6----+----7----+----8----+----9----+----200--+----1----+-
000002 2019072210392660...............................{............
444444444444FFFFFFFFFFFFFFFF0001000200000001000000000000000C000000000002
0000000000002019072210392660000300040003000200020001000200B0000200090008
+----150--+----6----+----7----+----8----+----9----+----200--+----1----+-
****** **** End of data ****
View CSQ2:CSQ2.DEAD.QUEUE + Top of 2
Command ===> Scroll CSR
Col 217 Insert Length 4194304 Record AT TOP Format HEX
****** **** Top of data ****
000001 ...*....CSQ CSQ2 RCSQ2O..oh..................4....CSQ2
00150001CED4CEDF444DCEDFD7298D8000000004000F000F0003CEDF4444444444444444
00BC0008328032820009328265F68EFC0004000400BE0014000032820000000000000000
---220--+----3----+----4----+----5----+----6----+----7----+----8----+---
000002 ...*....CSQ CSQ2 RCSQ2O..oh..................4....CSQ2
00150001CED4CEDF444DCEDFD7298D8000000004000F000F0003CEDF4444444444444444
00BC0008328032820009328265F68EFC0004000400BE0014000032820000000000000000
---220--+----3----+----4----+----5----+----6----+----7----+----8----+---
****** **** End of data ****
View CSQ2:CSQ2.DEAD.QUEUE + Top of 2
Command ===> Scroll CSR
Col 289 Insert Length 4194304 Record AT TOP Format HEX
****** **** Top of data ****
000001
4444444444444444444444444444
0000000000000000000000000000
-290--+----300--+----1----+-
000002
4444444444444444444444444444
0000000000000000000000000000
-290--+----300--+----1----+-
****** **** End of data ****
from mq-metric-samples.
That is clearly showing the reason code in the DLH is 2035 (0x7F3) - MQRC_NOT_AUTHORIZED. Looks like the response to the command (which itself has also failed with 2035) cannot be put back to the TDQ.
The JES logs might show what RACF profiles are failing.
from mq-metric-samples.
Hi Mark:
We found the problem, it was the same with the mcauser. I was arriving with the user mqm and in RACF said user did not exist. An existing mcauser was fixed in RACF and it worked correctly.
Thank you.
from mq-metric-samples.
Related Issues (20)
- Listener status HOT 1
- Prometheus IBM MQ metrics for total queue count HOT 1
- Incorrect link to MQ KnowledgeCenter in README.md HOT 1
- MQ Metric Samples does not support s390x HOT 2
- mq_prometheus - lack of MQPUT / MQGET metrics for UNIX platform HOT 2
- When connecting to a V9.0 instance getting panic: http: invalid pattern HOT 2
- Topic Metric Exporting HOT 2
- No more ibmmq_queue_depth metrics after upgrade to MQ 9.3.0.4 HOT 4
- Persistent message count per queue HOT 3
- Error collecting status: MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_NO_MSG_AVAILABLE [2033] HOT 6
- ibmmq_qmgr_mqput_mqput1_total metric missing HOT 4
- Precompiled ibmmq_exporter HOT 1
- IBM mq volume metrics based on queue manager and queue HOT 1
- MFT metrics HOT 1
- Inconsistent prometheus response from subsequent `GET /metrics` scrapes (e.g. `ibmmq_queue_depth`) HOT 3
- I need monitor two queueManagers. HOT 3
- Queue Level Metrics not visible on Prometheus dashboard HOT 2
- Listener metrics HOT 3
- panic: inconsistent label cardinality: expected 4 label values but got 3 in prometheus.Labels HOT 2
- Error collecting status: MQGET: MQCC = MQCC_FAILED [2] MQRC = MQRC_NO_MSG_AVAILABLE [2033] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mq-metric-samples.