newdevice: Added support for Alpha FXM UPS devices (#7324)

* newdevice: Added support for Alpha FXM UPS devices
This commit is contained in:
Neil Lathwood
2017-09-18 19:24:53 +01:00
committed by Søren Rosiak
parent a410e34115
commit 2115a1c6d1
8 changed files with 955 additions and 1 deletions

View File

@@ -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;
}