mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Q-BRIDGE-MIB vlan numbers on Procurve switches + minor misc
git-svn-id: http://www.observium.org/svn/observer/trunk@1323 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -15,8 +15,6 @@ include("includes/authenticate.inc.php");
|
||||
eval("\$config['" . $confitem . "'] = \$confval;");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
# echo "Please check config.php.default and adjust your settings to reflect the new Multi-Tenancy configuration.";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
## End Cisco Processors
|
||||
## End Ironware Processors
|
||||
|
||||
unset ($processors_array);
|
||||
|
||||
|
||||
@@ -17,12 +17,12 @@
|
||||
|
||||
foreach(explode("\n", $vlans) as $vlan_oid) {
|
||||
|
||||
list($oid,$vlan) = split(' ',$vlan_oid);
|
||||
list($oid,$vlan_index) = split(' ',$vlan_oid);
|
||||
$oid_ex = explode('.',$oid);
|
||||
$oid = $oid_ex[count($oid_ex)-1];
|
||||
$vlan = $oid_ex[count($oid_ex)-1];
|
||||
|
||||
$vlan_descr_cmd = $config['snmpget'] . " -M " . $config['mibdir'] . " -m Q-BRIDGE-MIB -O nvq -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " ";
|
||||
$vlan_descr_cmd .= "dot1qVlanStaticName.$oid|grep -v \"No Such Instance currently exists at this OID\"";
|
||||
$vlan_descr_cmd .= "dot1qVlanStaticName.$vlan|grep -v \"No Such Instance currently exists at this OID\"";
|
||||
$vlan_descr = shell_exec($vlan_descr_cmd);
|
||||
|
||||
$vlan_descr = trim(str_replace("\"", "", $vlan_descr));
|
||||
|
||||
Reference in New Issue
Block a user