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:
Tom Laermans
2010-08-03 15:12:16 +00:00
parent ad4562dff1
commit d3e58f84a6
6 changed files with 33 additions and 35 deletions
+2 -2
View File
@@ -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);
}
}
}