mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
committed by
Neil Lathwood
parent
925b7f83dc
commit
1ee7d51f7a
@ -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;
|
||||
|
Reference in New Issue
Block a user