APC Sensors Temperature Error discovery

An old APC w/o upsHighPrecBatteryTemperature

Fix:

/opt/librenms/includes/discovery/sensors/temperature# diff -u apc.inc.php.old apc.inc.php 
--- apc.inc.php.old     2021-10-20 11:48:04.092032785 +0300
+++ apc.inc.php 2021-10-20 11:48:26.156446592 +0300
@@ -9,7 +9,7 @@
     // upsAdvBatteryTemperature, used in case high precision is not available
     $oids = snmp_get($device, '.1.3.6.1.4.1.318.1.1.1.2.2.2.0', '-OsqnU', '');
     d_echo($oids . "\n");
-    $divisor = 1;
+    $precision  = 1;
 }

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.