refactor: More Cisco ASA Polling Performance Improvements (#5104)

This commit is contained in:
Søren Rosiak
2016-12-12 16:25:20 +02:00
committed by Neil Lathwood
parent dda62d8ce1
commit e56d26327a
6 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] != 'Snom') {
if (!starts_with($device['os'], array('Snom', 'asa'))) {
echo ' ICMP';
// Below have more oids, and are in trees by themselves, so we can snmpwalk_cache_oid them

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] != 'Snom') {
if (!starts_with($device['os'], array('Snom', 'asa'))) {
echo ' IP';
// These are at the start of large trees that we don't want to walk the entirety of, so we snmp_get_multi them

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] != 'Snom') {
if (!starts_with($device['os'], array('Snom', 'asa'))) {
echo ' IP-FORWARD';
// Below have more oids, and are in trees by themselves, so we can snmpwalk_cache_oid them

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] != 'Snom') {
if (!starts_with($device['os'], array('Snom', 'asa'))) {
echo ' TCP';
$oids = array(

View File

@@ -1,6 +1,6 @@
<?php
if ($device['os'] != 'Snom') {
if (!starts_with($device['os'], array('Snom', 'asa'))) {
echo ' UDP';
// These are at the start of large trees that we don't want to walk the entirety of, so we snmpget_multi them

View File

@@ -186,7 +186,7 @@ if ($config['enable_ports_poe']) {
// foreach ($etherlike_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "EtherLike-MIB"); }
// foreach ($cisco_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "OLD-CISCO-INTERFACES-MIB"); }
// foreach ($pagp_oids as $oid) { $port_stats = snmpwalk_cache_oid($device, $oid, $port_stats, "CISCO-PAGP-MIB"); }
if ($device['os_group'] == 'cisco') {
if ($device['os_group'] == 'cisco' && $device['os'] != 'asa') {
$port_stats = snmp_cache_portIfIndex($device, $port_stats);
$port_stats = snmp_cache_portName($device, $port_stats);
foreach ($pagp_oids as $oid) {