mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: More Cisco ASA Polling Performance Improvements (#5104)
This commit is contained in:
committed by
Neil Lathwood
parent
dda62d8ce1
commit
e56d26327a
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] != 'Snom') {
|
||||
if (!starts_with($device['os'], array('Snom', 'asa'))) {
|
||||
echo ' TCP';
|
||||
|
||||
$oids = array(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user