Werk #5082: gude_powerbanks: Adapted discovery of powerbanks

Component Checks & agents
Title gude_powerbanks: Adapted discovery of powerbanks
Date Aug 4, 2017
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.5.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Devices with OID_END=38 are 12 port power switches with two powerbanks. Means each powerbank has 6 outlets. Here we can use ChanStatus in order to find out if one powerbank is enabled/used.

Devices with OID_END=19 are simple switch outlets: 1 Port and 1 powerbank Once it's plugged in, the state is "on". Thus we use PortState in discovering function.

To the list of all Werks