From 1ee7d51f7ac52aa6854f101ccdda362499beebed Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 29 Jan 2018 15:01:11 -0600 Subject: [PATCH] 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. --- includes/polling/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index 095ae877af..10ccbd1647 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -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;