mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add snmpv3 support to old snmp queries - patch by gl
git-svn-id: http://www.observium.org/svn/observer/trunk@3184 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -30,6 +30,7 @@ foreach ($device['vlans'] as $domain_id => $vlans)
|
||||
{
|
||||
if ($device['os_group'] == "cisco" || $device['os'] == "ios") /// This shit only seems to work on IOS
|
||||
{
|
||||
# Probably does not work with snmpv3. I have no real idea about what this code is really doing
|
||||
$vlan_device = array_merge($device, array('community' => $device['community']."@".$vlan_id));
|
||||
$vlan_data = snmpwalk_cache_oid($vlan_device, "dot1dStpPortEntry", array(), "BRIDGE-MIB:Q-BRIDGE-MIB");
|
||||
$vlan_data = snmpwalk_cache_oid($vlan_device, "dot1dBasePortEntry", $vlan_data, "BRIDGE-MIB:Q-BRIDGE-MIB");
|
||||
|
Reference in New Issue
Block a user