[BUG][zertificon_mail_queues.py] Zertificon OIDs are interpreted incorrectly

Hello,

I have found a “bug” in your Zertificon check “zertificon_mail_queues.py”.

CMK version: CME 2.2.0p9

Error description:
In the check you expect the number of mails waiting in the Zertificon queue, but the OIDs you query return a status code (0,1,2) and not the actual number of mails.

The corresponding setup rule also explicitly asks for the number of mails:

In the screenshot from the Zertificon Appliance guide you can see that Zertificon “filters” the number of mails itself in advance and returns a corresponding status code via SNMP.

grafik

So if I would create a rule with the check and I want to receive a warning when the queue size exceeds 20 mails, for example, this will never happen because the return value will never be greater than 2.
The check should therefore be more of a status mapping for the statuses 0,1,2.

I am currently using the workaround and have set the threshold values to 1/2.

Thanks in advance,
Kind regards,
Marc