mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sensors, convert hex to strings (#14121)
* Sensors, convert hex to strings * Fix clickshare, it actually was returning hex * update hpe-mapdu * skip ict-mps sensors without valid values
This commit is contained in:
@@ -22,7 +22,7 @@ function bulk_sensor_snmpget($device, $sensors)
|
||||
return $data['sensor_oid'];
|
||||
}, $chunk);
|
||||
$oids = implode(' ', $oids);
|
||||
$multi_response = snmp_get_multi_oid($device, $oids, '-OUQnte');
|
||||
$multi_response = snmp_get_multi_oid($device, $oids, '-OUQntea');
|
||||
$cache = array_merge($cache, $multi_response);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ function poll_sensor($device, $class)
|
||||
|
||||
if (file_exists('includes/polling/sensors/' . $class . '/' . $device['os'] . '.inc.php')) {
|
||||
require 'includes/polling/sensors/' . $class . '/' . $device['os'] . '.inc.php';
|
||||
} elseif (file_exists('includes/polling/sensors/' . $class . '/' . $device['os_group'] . '.inc.php')) {
|
||||
} elseif (isset($device['os_group']) && file_exists('includes/polling/sensors/' . $class . '/' . $device['os_group'] . '.inc.php')) {
|
||||
require 'includes/polling/sensors/' . $class . '/' . $device['os_group'] . '.inc.php';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user