mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added support for Alpha FXM UPS devices (#7324)
* newdevice: Added support for Alpha FXM UPS devices
This commit is contained in:
committed by
Søren Rosiak
parent
a410e34115
commit
2115a1c6d1
@@ -226,7 +226,7 @@ function snmp_get_multi_oid($device, $oids, $options = '-OUQn', $mib = null, $mi
|
||||
foreach (explode("\n", $data) as $entry) {
|
||||
list($oid,$value) = explode('=', $entry, 2);
|
||||
$oid = trim($oid);
|
||||
$value = trim($value);
|
||||
$value = trim($value, "\" \n\r");
|
||||
if (!strstr($value, 'at this OID') && isset($oid)) {
|
||||
$array[$oid] = $value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user