fix voltage error

git-svn-id: http://www.observium.org/svn/observer/trunk@1292 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong 2010-07-04 21:30:32 +00:00
parent c5f7f9ac5f
commit 9f6f3226e1

View File

@ -9,7 +9,7 @@ while($voltage = mysql_fetch_array($volt_data)) {
#$volt_cmd = $config['snmpget'] . " -M ".$config['mibdir'] . " -m SNMPv2-MIB -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $voltage['volt_oid'] . "|grep -v \"No Such Instance\"";
#$volt = trim(str_replace("\"", "", shell_exec($volt_cmd)));
$volt = snmp_get($device, $voltage['volt_oid'], "SNMPv2-MIB");
$volt = snmp_get($device, $voltage['volt_oid'], "-OUqnv", "SNMPv2-MIB");
if ($voltage['volt_precision'])
{