From 9bf9edb20b2e318dc8fc2aba4fd678a34a999ad2 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 19 Jan 2012 10:33:15 +0000 Subject: [PATCH] comment git-svn-id: http://www.observium.org/svn/observer/trunk@2839 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/vlans.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/discovery/vlans.inc.php b/includes/discovery/vlans.inc.php index 807d835e2..33a643691 100644 --- a/includes/discovery/vlans.inc.php +++ b/includes/discovery/vlans.inc.php @@ -14,10 +14,10 @@ foreach($this_vlans as $vlan) #/usr/bin/snmpbulkwalk -v2c -c kglk5g3l454@988 -OQUs -m BRIDGE-MIB -M /opt/observium/mibs/ udp:sw2.ahf:161 dot1dStpPortEntry #/usr/bin/snmpbulkwalk -v2c -c kglk5g3l454@988 -OQUs -m BRIDGE-MIB -M /opt/observium/mibs/ udp:sw2.ahf:161 dot1dBasePortEntry - if($vlan <1002 || $vlan > 1105) /// Ignore reserved VLAN IDs + if(is_numeric($vlan) && ($vlan <1002 || $vlan > 1105)) /// Ignore reserved VLAN IDs { - if($device['os_group'] == "cisco") + if($device['os_group'] == "cisco" || $device['os'] == "ios") /// This shit only seems to work on IOS { $vlan_device = array_merge($device, array('community' => $device['community']."@".$vlan)); $vlan_data = snmpwalk_cache_oid($vlan_device, "dot1dStpPortEntry", array(), "BRIDGE-MIB:Q-BRIDGE-MIB");