From Abrupt Dolphin, 7 Years ago, written in Plain Text.
Embed
  1. diff --git a/includes/polling/ports/f5.inc.php b/includes/polling/ports/f5.inc.php
  2. index c3a04d3..ff68d87 100644
  3. --- a/includes/polling/ports/f5.inc.php
  4. +++ b/includes/polling/ports/f5.inc.php
  5. @@ -25,8 +25,11 @@
  6.  
  7.  $f5_stats = snmpwalk_cache_oid($device, 'sysIfxStat', array(), 'F5-BIGIP-SYSTEM-MIB');
  8.  unset($f5_stats[0]);
  9. -$tmp_port_stats = snmpwalk_cache_oid($device, 'ifEntry', array(), 'IF-MIB', null, '-OQUst');
  10. -$tmp_port_stats = snmpwalk_cache_oid($device, 'ifXEntry', $tmp_port_stats, 'IF-MIB', null, '-OQUst');
  11. +
  12. +foreach ($ifmib_oids as $oid) {
  13. +    echo "$oid ";
  14. +    $tmp_port_stats = snmpwalk_cache_oid($device, $oid, $tmp_port_stats, 'IF-MIB', null, '-OQUst');
  15. +}
  16.  
  17.  $required = array(
  18.      'ifName' => 'sysIfxStatName',
  19.