various fixes, add some more netmanplus stats, convert discover_volt and discover_freq to use the by-reference array like discover_temperature

git-svn-id: http://www.observium.org/svn/observer/trunk@1193 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-17 10:03:50 +00:00
parent dae19e2191
commit ba6e3429d0
6 changed files with 66 additions and 103 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ while($dbcurrent = mysql_fetch_array($current_data)) {
echo("Checking current " . $dbcurrent['current_descr'] . "... ");
$current_cmd = $config['snmpget'] . " -m SNMPv2-MIB -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $dbcurrent['current_oid'] . "|grep -v \"No Such Instance\"";
$current = trim(str_replace("\"", "", shell_exec($current_cmd)));
$current = trim(shell_exec($current_cmd));
if ($dbcurrent['current_precision'])
{