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:
Tom Laermans
2010-07-09 17:22:16 +00:00
parent c47c7c667f
commit 2203e9da95
3 changed files with 4 additions and 6 deletions

View File

@@ -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.";
}

View File

@@ -38,7 +38,7 @@
}
}
}
## End Cisco Processors
## End Ironware Processors
unset ($processors_array);

View File

@@ -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));