Poll sensors as enum values instead of labels. (#8162)

Most of the time they should be polled as values anyway, but sometimes the mib might get loaded...  If we set -Oe, then we always get the numeric value of the poller.
All sensors should get a numeric value anyway.

We still have to handle state sensors that return string values though.
This commit is contained in:
Tony Murray
2018-01-29 15:01:11 -06:00
committed by Neil Lathwood
parent 925b7f83dc
commit 1ee7d51f7a

View File

@ -12,7 +12,7 @@ function bulk_sensor_snmpget($device, $sensors)
return $data['sensor_oid'];
}, $chunk);
$oids = implode(' ', $oids);
$multi_response = snmp_get_multi_oid($device, $oids, '-OUQnt');
$multi_response = snmp_get_multi_oid($device, $oids, '-OUQnte');
$cache = array_merge($cache, $multi_response);
}
return $cache;