Hi folks,
Having an issue since 95820bf with IPv6 BGP session polling on Huawei VRP (hardware NE05E-SQ, software V300R003C10SPC500+V300R003SPH028 and V300R002C10SPC200). Discovery picks up v6 BGP sessions just fine, but polling never finds them.
$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.60-81-gcf023b936
DB Schema | 2020_02_10_223323_create_alert_location_map_table (159)
PHP | 7.3.11-1+0~20191026.48+debian9~1.gbpf71ca0
MySQL | 10.1.41-MariaDB-0+deb9u1
RRDTool | 1.6.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.9.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX]:
Check the cron job to make sure it is running and using discovery-wrapper.py
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
rrd/.gitignore
$
(Discovery has definitely run in the previous 24 hours, not sure why that check fails).
From the poller debugger:
Checking BGP peer xxxx:xxxx::1 Fetching BGP4-MIB data...
SNMP['/usr/bin/snmpget' '-v3' '-l' 'authPriv' '-n' "" '-a' 'SHA' '-A' 'PASSWORD' '-u' 'USER' '-x' 'AES' '-X' 'PASSWORD' '-OQUs' '-m' 'BGP4-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/huawei' 'udp:HOSTNAME:161' 'bgpPeerState.xxxx:xxxx::1' 'bgpPeerAdminStatus.xxxx:xxxx::1' 'bgpPeerInUpdates.xxxx:xxxx::1' 'bgpPeerOutUpdates.xxxx:xxxx::1' 'bgpPeerInTotalMessages.xxxx:xxxx::1' 'bgpPeerOutTotalMessages.xxxx:xxxx::1' 'bgpPeerFsmEstablishedTime.xxxx:xxxx::1' 'bgpPeerInUpdateElapsedTime.xxxx:xxxx::1' 'bgpPeerLocalAddr.xxxx:xxxx::1']
Checking BGP peer x.x.x.1 Fetching BGP4-MIB data...
SNMP['/usr/bin/snmpget' '-v3' '-l' 'authPriv' '-n' "" '-a' 'SHA' '-A' 'PASSWORD' '-u' 'USER' '-x' 'AES' '-X' 'PASSWORD' '-OQUs' '-m' 'BGP4-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/huawei' 'udp:HOSTNAME:161' 'bgpPeerState.x.x.x.1' 'bgpPeerAdminStatus.x.x.x.1' 'bgpPeerInUpdates.x.x.x.1' 'bgpPeerOutUpdates.x.x.x.1' 'bgpPeerInTotalMessages.x.x.x.1' 'bgpPeerOutTotalMessages.x.x.x.1' 'bgpPeerFsmEstablishedTime.x.x.x.1' 'bgpPeerInUpdateElapsedTime.x.x.x.1' 'bgpPeerLocalAddr.x.x.x.1']
In an snmpwalk the v6 sessions don’t show up:
$ /usr/bin/snmpwalk -v3 -l authPriv -aSHA -A x -u x -xAES -X x -OQUs -mBGP4-MIB -M/opt/librenms/mibs:/opt/librenms/mibs/huawei router01 bgpPeerState
bgpPeerState.x.x.x.205 = established
bgpPeerState.x.x.x.1 = established
bgpPeerState.x.x.x.2 = established
bgpPeerState.x.x.x.3 = established
bgpPeerState.x.x.x.4 = established
bgpPeerState.x.x.x.6 = established
bgpPeerState.x.x.x.10 = established
bgpPeerState.x.x.x.100 = established
bgpPeerState.x.x.x.60 = established
bgpPeerState.x.x.x.68 = established
bgpPeerState.x.x.x.146 = established
$
I’d totally believe v6 sessions just not being exposed via SNMP with the new MIB. Is this a bug, or something I’m missing?
Thanks,
- I.