Werk #5082: gude_powerbanks: Adapted discovery of powerbanks

KomponenteChecks & Agents
Titelgude_powerbanks: Adapted discovery of powerbanks
Datum2017-08-04 09:47:12
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.4.0p10,1.5.0i1
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

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.