Commit d0931d2
committed
18975 FIX ibm_mq_queues: Support QStatus from CSQM format
Users monitoring IBM MQ on Mainframe (z/OS) systems via Piggyback
encountered crashes and missing data following the changes in Werk
The following problems have been resolved:
Crash: "ValueError: Cannot render negative timespan": `ibm_mq_queues`
check crashed with a `ValueError` when the IBM MQ system clock was ahead
or due to parsing precision differences. Use absolute time difference to
prevent negative timespans and crashes.
Data Merging: Users reported `duplicate section definition` errors or
missing service details when monitoring Mainframe queues. The agent
receives split information for `QUEUE` and `QSTATUS`.
The plugin now parses and merges `QUEUE` and `QSTATUS` outputs
correctly. This merge combines the mq data into a single service. This
resolves the crash and populates all metrics correctly.
Parsing of Empty Values: The parser now handles empty values in the
agent output correctly. Previously, strict parsing logic led to
incomplete data parsing or missing services.
Before this fix, you might have seen crashes in the `ibm_mq_queues`
check or missing queue metrics. After updating, monitoring will be
stable and complete without needing any changes to your configuration.
JIRA-Ref: SUP-23371 | SUP-26328 | CMK-32551
Change-Id: If818fecfd866aa24c80eb45eb32284ab0f12c9581 parent 3cb4d0d commit d0931d2
4 files changed
Lines changed: 42 additions & 4 deletions
File tree
- .werks
- cmk
- base
- legacy_checks
- plugins/agent_based
- plugins/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | 32 | | |
21 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments