Fix typo in Raspberry Pi sensor detection (#9368)

This commit is contained in:
Sanne Bregman
2018-10-25 22:31:43 +02:00
committed by Tony Murray
parent 00b752a862
commit 7e0a9134d5

View File

@ -4,7 +4,7 @@
* requires snmp extend agent script from librenms-agent * requires snmp extend agent script from librenms-agent
*/ */
if (!empty($pre_cache['raspberry_pi_sensors'])) { if (!empty($pre_cache['raspberry_pi_sensors'])) {
$sensor_type = "rasbperry_volts"; $sensor_type = "raspberry_volts";
$oid = '.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.'; $oid = '.1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.';
for ($volt = 2; $volt < 6; $volt++) { for ($volt = 2; $volt < 6; $volt++) {
switch ($volt) { switch ($volt) {