From 0442825948a1aec8d36af08c999478e49913fef7 Mon Sep 17 00:00:00 2001 From: laf Date: Sun, 12 Apr 2015 16:53:43 +0100 Subject: [PATCH] Actually use the correct mib --- 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 e82c300f1..115fc0033 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -26,7 +26,7 @@ function poll_sensor($device, $class, $unit) if ($sensor['sensor_type'] == 'apc') { $tmp_mib .= ':PowerNet-MIB'; } - $sensor_value = trim(str_replace("\"", "", snmp_get($device, $sensor['sensor_oid'], "-OUqnv", "SNMPv2-MIB"))); + $sensor_value = trim(str_replace("\"", "", snmp_get($device, $sensor['sensor_oid'], "-OUqnv", "$tmp_mib"))); } } else if ($sensor['poller_type'] == "agent") {