fix: Updated bad_ifXEntry to be case insensitive and added cisco2811 to ios.yaml #5283 (#5285)

This commit is contained in:
Neil Lathwood
2017-01-03 09:29:52 -06:00
committed by Tony Murray
parent 75d5e41fd3
commit f62cff8974
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ icon: cisco
bad_ifXEntry:
- cisco1941
- cisco886Va
- cisco2811
poller_modules:
cisco-ace-serverfarms: 1
cisco-ace-loadbalancer: 1
+1 -1
View File
@@ -127,7 +127,7 @@ echo 'Caching Oids: ';
if ($device['os'] === 'f5' && (version_compare($device['version'], '11.2.0', '>=') && version_compare($device['version'], '11.7', '<'))) {
require_once 'ports/f5.inc.php';
} else {
if (!in_array($device['hardware'], $config['os'][$device['os']]['bad_ifXEntry'])) {
if (!in_array(strtolower($device['hardware']), array_map('strtolower', $config['os'][$device['os']]['bad_ifXEntry']))) {
$port_stats = snmpwalk_cache_oid($device, 'ifXEntry', $port_stats, 'IF-MIB');
}
$hc_test = array_slice($port_stats, 0, 1);