mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Actually use the correct mib
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user