mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 08:03:30 +02:00
fix trimming quotes from areca controller sensors, fix health/frequencies page to use new table
git-svn-id: http://www.observium.org/svn/observer/trunk@1636 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -17,8 +17,8 @@ if ($device['os'] == "areca")
|
||||
$split_oid = explode('.',$oid);
|
||||
$index = $split_oid[count($split_oid)-1];
|
||||
$oid = "1.3.6.1.4.1.18928.1.2.2.1.9.1.3." . $index;
|
||||
$current = snmp_get($device, $oid, "-Oqv", "") / $precision;
|
||||
discover_sensor($valid_sensor, 'fanspeed', $device, $oid, $index, 'areca', $descr, '1', '1', NULL, NULL, NULL, NULL, $current);
|
||||
$current = snmp_get($device, $oid, "-Oqv", "");
|
||||
discover_sensor($valid_sensor, 'fanspeed', $device, $oid, $index, 'areca', trim($descr,'"'), '1', '1', NULL, NULL, NULL, NULL, $current);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user