From Aqua Ostrich, 1 Year ago, written in Plain Text.
This paste is a reply to Untitled from librenms - go back
Embed
Viewing differences between Untitled and Re: Untitled
diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php
php
index b0c1c22..0771e60 100644
100644
--- a/includes/polling/ports.inc.php
php
+++ b/includes/polling/ports.inc.php
php
@@ -213,7 +213,7 @@ if ($device['os'] === 'f5' && (version_compare($device['version'], '11.2.0', '>=
             
'>=
             
$port_stats = snmpwalk_cache_oid($device, 'ifXEntry', $port_stats, 'IF-MIB');
         }
         
'IF-MIB');
         }
         
$hc_test = array_slice($port_stats, 0, 1);
1);
-        if (!isset($hc_test[0]['ifHCInOctets']) && !is_numeric($hc_test[0]['ifHCInOctets'])) {
{
+        if (!isset($hc_test[0]['ifHighSpeed']) && !is_numeric($hc_test[0]['ifHighSpeed'])) {
             
{
             
$port_stats = snmpwalk_cache_oid($device, 'ifEntry', $port_stats, 'IF-MIB', null, '-OQUst');
         
'-OQUst');
         
} else {
             
{
             
foreach ($ifmib_oids as $oid) {
{