diff --git a/AUTHORS.md b/AUTHORS.md index 83644c51ed..100bf7f5c1 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -104,6 +104,7 @@ LibreNMS contributors: - Robert Verspuy (exarv) - Peter Tkatchenko (Peter2121) - Marc Runkel (mrunkel) +- Josh Driver (keeperofdakeys) [1]: http://observium.org/ "Observium web site" Observium was written by: diff --git a/includes/discovery/sensors/fanspeeds/lmsensors.inc.php b/includes/discovery/sensors/fanspeeds/lmsensors.inc.php index 3127970f30..69b523fecc 100644 --- a/includes/discovery/sensors/fanspeeds/lmsensors.inc.php +++ b/includes/discovery/sensors/fanspeeds/lmsensors.inc.php @@ -19,7 +19,7 @@ if ($device['os'] == 'linux' || $device['os'] == 'pktj' || $device['os'] == 'cu $oid = '1.3.6.1.4.1.2021.13.16.3.1.3.'.$index; $current = snmp_get($device, $oid, '-Oqv', 'LM-SENSORS-MIB'); $descr = trim(str_ireplace('fan-', '', $descr)); - if ($current > '0') { + if ($current !== false && $current >= 0) { discover_sensor($valid['sensor'], 'fanspeed', $device, $oid, $index, 'lmsensors', $descr, '1', '1', null, null, null, null, $current); } }