mirror of
https://github.com/librenms/librenms.git
synced 2024-09-23 03:18:54 +00:00
fix voltage error
git-svn-id: http://www.observium.org/svn/observer/trunk@1292 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
c5f7f9ac5f
commit
9f6f3226e1
@ -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_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 = 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'])
|
if ($voltage['volt_precision'])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user