mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Strip " from rPi temp sensor discovery (#6815)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
$sensor_oid = ".1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.1";
|
$sensor_oid = ".1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.1";
|
||||||
$value = snmp_get($device, $sensor_oid, '-Oqve');
|
$value = snmp_get($device, $sensor_oid, '-Oqve');
|
||||||
|
$value = trim($value, '"');
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
$sensor_type = "raspberry_temp";
|
$sensor_type = "raspberry_temp";
|
||||||
$descr = "CPU Temp";
|
$descr = "CPU Temp";
|
||||||
|
Reference in New Issue
Block a user