Replies: 3 comments
-
hello, |
Beta Was this translation helpful? Give feedback.
-
Did you ever find a fix for this one, @boogie777? |
Beta Was this translation helpful? Give feedback.
-
I think you're going about this the wrong way. You need to start with the generator, give it the BGP4-MIB file (in addition to all the dependent mib files, which
Then the generator outputs the following
This works for me, e.g. if I point it at a Cisco Nexus 9K:
I'm testing this on an old system with snmp-exporter 0.20.0, so I had to change the config a little to get the old form (with module and auth combined). If this still doesn't work on your target device, then I suggest you try reducing Aside: you might want to tweak it a bit, e.g. to use enums for the status. Currently I get:
With a slight tweak to generator.yml:
Now we get the following snmp.yml:
Now we get:
But to be honest, I'm not sure that's actually necessary, e.g. ifOperStatus and ifAdminStatus just give a number as well. I suppose some queries are easier with the EnumAsStateSet form (e.g. "what percentage of time was the connection in 'established' state?") |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i meet a pb while trying to poll BGP info using snmp-exporter. Everything is OK while trying to retrieve other data from this network equipment ( extreme router ) using snmp-exporter ( able to get hw info, lacp , interfaces ....)
The result of BGP polling is "empty" when setting a minimalist conf ( only one oid ) using snmp-exporter while ok with a walk .
I surely made something wrong ..but unable to fix after hours of troubleshooting
Host operating system: output of
uname -a
Linux workersops 3.10.0-1160.25.1.el7.x86_64 #1 SMP Wed Apr 28 21:49:45 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Kubernetes: 1.24.8
kube-prometheus-stack: 32.2.0
helm chart snmp-exporter: 1.4.0
snmp-exporter: 0.21
snmp v3
snmp_exporter version: output of
snmp_exporter -version
What device/snmpwalk OID are you using?
BGP4-MIB / OID : 1.3.6.1.2.1.15.3.1.7
If this is a new device, please link to the MIB(s).
What did you do that produced an error?
With the following config of the snmp config :
Nb: the snmp config has been made using the generator tool
the BGP scrape result is empty :
No error produced in snmp-exporter
What did you expect to see?
I would like to be able to retrieve simple info as snmpwalk did
What did you see instead?
the BGP scrape result is empty :
Any clue is welcome :)
Thx
Beta Was this translation helpful? Give feedback.
All reactions