centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
311 stars 274 forks source link

os::as400::connector::plugin --mode=message-queue: ignore acknowledge messages #5104

Open joschi99 opened 4 months ago

joschi99 commented 4 months ago

When we are monitoring message queue from AS400, then all messages will be returned like this example:

CRITICAL: number of messages: 1 | '/QSYS.LIB/QSYSOPR.MSGQ#mq.messages.count'=1;;0:0;0;
message [id: ] [severity: 99] [date: Tue Jul  9 12:11:18 2024] [user: QSECOFR]: G

But this example has a message that was acknowledged and for them is not more relevant. The acknowledge information is the final "G". The origimal message on the AS400 is this one here: image image

We need to exclude acknlowledged messages or to have a option to exclude them, because it does not make sense to have alarm for this kind of messages.

lucie-dubrunfaut commented 3 months ago

Hello :)

Can you provide us the the plugin output with the --debugoption? Also if you can provide us the data test return from the API to help us troubleshooting this issue? Also if you have any english documentation about the acknwoledge messages (I read Italian very badly unfortunately).

joschi99 commented 3 months ago

Hi @lucie-dubrunfaut, I send the debug output to you by mail. I do not have any english screenshot (this is not a documentation but a screenshot from the as400 GUI). But the screenshot shows the message and response (IT: risposta), where the resonse is "G"

If you need some help or other informations please let me know.

lucie-dubrunfaut commented 2 months ago

Hello :)

I've received the debug and I'm going to see what the dev team has to say about it during the refinement session.