mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
APC UPS UIO sensor discovery bug (#14942)
* only proceed if there are entries in the uio table * only proceed if there are entries in the uio table
This commit is contained in:
@@ -159,7 +159,7 @@ foreach ($pre_cache['mem_sensors_status'] as $index => $data) {
|
|||||||
|
|
||||||
// Monitor contact switches via the UIO ports.
|
// Monitor contact switches via the UIO ports.
|
||||||
$apcContactData = snmpwalk_cache_oid($device, 'uioInputContact', $apcContactData, 'PowerNet-MIB', null, '-OQUse');
|
$apcContactData = snmpwalk_cache_oid($device, 'uioInputContact', $apcContactData, 'PowerNet-MIB', null, '-OQUse');
|
||||||
if ($apcContactData) {
|
if ($apcContactData['uioInputContactStatusTableSize'] > 0) {
|
||||||
// NMC2/NMC3/etc Universal Input Output
|
// NMC2/NMC3/etc Universal Input Output
|
||||||
foreach (array_keys($apcContactData) as $index) {
|
foreach (array_keys($apcContactData) as $index) {
|
||||||
// APC disabled (1), enabled (2)
|
// APC disabled (1), enabled (2)
|
||||||
|
Reference in New Issue
Block a user