mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Incorrect discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase ups (#15602)
* Add files via upload * correct discovery of APC UPS as single-phase False discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase. * false discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase. false discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase. * Delete tests/snmpsim/epson_scanner_ds-860.snmprec * apc_surt3000xl.snmprec apc_surt3000xl.snmprec * json for apc surt3000xl generated by @laf json for apc surt3000xl generated by @laf * Fix apc_surt3000xl.json --------- Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
@@ -216,7 +216,7 @@ unset($oids);
|
||||
// UPS
|
||||
|
||||
$phasecount = $pre_cache['apcups_phase_count'];
|
||||
if ($phasecount > 1) {
|
||||
if ($phasecount > 2) {
|
||||
$oids = snmpwalk_cache_oid($device, 'upsPhaseOutputCurrent', [], 'PowerNet-MIB');
|
||||
$in_oids = snmpwalk_cache_oid($device, 'upsPhaseInputCurrent', $in_oids, 'PowerNet-MIB');
|
||||
} else {
|
||||
|
@@ -31,7 +31,7 @@ $phasecount = $pre_cache['apcups_phase_count'];
|
||||
d_echo($phasecount);
|
||||
d_echo($pre_cache['apcups_phase_count']);
|
||||
// Check for three phase UPS devices - else skip to normal discovery
|
||||
if ($phasecount > 1) {
|
||||
if ($phasecount > 2) {
|
||||
$oids = snmpwalk_cache_oid($device, 'upsPhaseOutputVoltage', $oids, 'PowerNet-MIB');
|
||||
$in_oids = snmpwalk_cache_oid($device, 'upsPhaseInputVoltage', $in_oids, 'PowerNet-MIB');
|
||||
foreach ($oids as $index => $data) {
|
||||
|
Reference in New Issue
Block a user