diff --git a/LibreNMS/Component.php b/LibreNMS/Component.php index 5c7b9d3c26..a9705ea6fb 100644 --- a/LibreNMS/Component.php +++ b/LibreNMS/Component.php @@ -354,7 +354,7 @@ class Component dbUpdate($DATA, 'component_prefs', '`component` = ? AND `attribute` = ?', array($COMPONENT, $ATTR)); // Add the modification to the Eventlog. - log_event("Component: " . $AVP[$COMPONENT]['type'] . "(" . $COMPONENT . "). Attribute: " . $ATTR . ", was modified from: " . $OLD[$COMPONENT][$ATTR] . ", to: " . $VALUE, $device_id, 'component', 3, $COMPONENT); + log_event("Component: " . $AVP[$COMPONENT]['type'] . "(" . $COMPONENT . "). Attribute: " . $ATTR . ", was modified from: " . $OLD[$device_id][$COMPONENT][$ATTR] . ", to: " . $VALUE, $device_id, 'component', 3, $COMPONENT); } } // End Foreach AVP diff --git a/includes/discovery/fdb-table/ios.inc.php b/includes/discovery/fdb-table/ios.inc.php index 4139c72ef3..9387d63b00 100644 --- a/includes/discovery/fdb-table/ios.inc.php +++ b/includes/discovery/fdb-table/ios.inc.php @@ -18,7 +18,7 @@ foreach ($vtpdomains as $vtpdomain_id => $vtpdomain) { $vlans_dict[$vlan_raw] = $newvlan_id; } - if ($vlan['vtpVlanState'] === '1') { + if (($vlan['vtpVlanState'] === '1') && ($vlan_raw < 1002 || $vlan_raw > 1005)) { $device_vlan = array_merge($device, array('community' => $device['community'] . '@' . $vlan_raw, 'context_name' => "vlan-$vlan_raw")); $fdbPort_table = snmpwalk_group($device_vlan, 'dot1dTpFdbPort', 'BRIDGE-MIB', 0);