mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Bintec be.IP plus support (#12993)
* Introduce OS flag to support devices that deliver OIDs out of order * Add MIB for Bintec Be.IP Plus * Add YAML definitions for Bintec Be.IP Plus * Add Bintec be.IP plus test files * Rename bintec mib files mib-standards.mib was deleted, because it included definitions that also existed in separate files * Add test data * Remove standard mib files from bintec dir * Add regex to parse Bintec Be.IP Plus OS version * Update test data for Bintec Be.IP Plus * Calculate Bintec Be.IP Plus CPU load from inverse of idle time * Improve Bintec Be.IP Plus discovery and tests * Use MIB instead of numerical OIDs where possible * Update tests to comply with updated discovery * Remove unused MIBs * Remove json props that let tests fail * Update Settings.md * Remove `snmp_out_of_order_oids` definition from bintec-beip-plus * Add `-Cc` snmp param for prots module * Add `-Cc` snmp param for arp-table module * remove snmp_out_of_order_oids * Remove snmp_out_of_order_oids * Update snmp.inc.php Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -650,12 +650,13 @@ function snmpwalk_cache_triple_oid($device, $oid, $array, $mib = null, $mibdir =
|
||||
* @param int $depth how many indexes to group
|
||||
* @param array $array optionally insert the entries into an existing array (helpful for grouping multiple walks)
|
||||
* @param string $mibdir custom mib dir to search for mib
|
||||
* @param mixed $snmpFlags flags to use for the snmp command
|
||||
* @return array grouped array of data
|
||||
*/
|
||||
function snmpwalk_group($device, $oid, $mib = '', $depth = 1, $array = [], $mibdir = null, $strIndexing = null)
|
||||
function snmpwalk_group($device, $oid, $mib = '', $depth = 1, $array = [], $mibdir = null, $strIndexing = null, $snmpFlags = '-OQUsetX')
|
||||
{
|
||||
d_echo("communityStringIndexing $strIndexing\n");
|
||||
$cmd = gen_snmpwalk_cmd($device, $oid, '-OQUsetX', $mib, $mibdir, $strIndexing);
|
||||
$cmd = gen_snmpwalk_cmd($device, $oid, $snmpFlags, $mib, $mibdir, $strIndexing);
|
||||
$data = rtrim(external_exec($cmd));
|
||||
|
||||
$line = strtok($data, "\n");
|
||||
|
Reference in New Issue
Block a user