Werk #17355: raritan_pdu_plugs.py: respect user defined parameters

Component Checks & agents
Title raritan_pdu_plugs.py: respect user defined parameters
Date Oct 9, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p19 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p36 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Currently, the check disregards the custom parameters set by the user, always returning the state defined by the SNMP mapping. With this change, the service now compares the current state with the required state defined by the user in the check parameters. If there is a mismatch, a "CRIT" result will be yielded, comparing the actual and expected plug state. Otherwise, an "OK" result will be yielded with the plug state.

Note: if these parameters are not explicitly set for your service, the service will compare the current state with the state set during service discovery. If you do have configured parameters, there are no changes needed for this fix.

To the list of all Werks