mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
failfix two of infinite
git-svn-id: http://www.observium.org/svn/observer/trunk@1303 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -9,7 +9,7 @@ while($fanspeed = mysql_fetch_array($fan_data)) {
|
||||
#$fan_cmd = $config['snmpget'] . " -M ".$config['mibdir'] . " -m SNMPv2-MIB -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $fanspeed['sensor_oid'] . "|grep -v \"No Such Instance\"";
|
||||
#$fan = trim(str_replace("\"", "", shell_exec($fan_cmd)));
|
||||
|
||||
$fan = snmp_get($device, $fanspeed['sensor_oid'], "", "SNMPv2-MIB");
|
||||
$fan = snmp_get($device, $fanspeed['sensor_oid'], "-OUqnv", "SNMPv2-MIB");
|
||||
|
||||
if ($fanspeed['sensor_precision']) { $fan = $fan / $fanspeed['sensor_precision']; }
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ while($frequency = mysql_fetch_array($freq_data)) {
|
||||
#$freq_cmd = $config['snmpget'] . " -M ".$config['mibdir'] . " -m SNMPv2-MIB -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $frequency['freq_oid'] . "|grep -v \"No Such Instance\"";
|
||||
#$freq = trim(str_replace("\"", "", shell_exec($freq_cmd)));
|
||||
|
||||
$freq = snmp_get($device, $frequency['freq_oid'], "", "SNMPv2-MIB");
|
||||
$freq = snmp_get($device, $frequency['freq_oid'], "-OUqnv", "SNMPv2-MIB");
|
||||
|
||||
|
||||
if ($frequency['freq_precision'])
|
||||
|
||||
Reference in New Issue
Block a user