Hi there!
I am trying to generate config for snmp-exporter, but I get the following message:
level=info ts=2020-09-18T15:05:13.192Z caller=net_snmp.go:142 msg="Loading MIBs" from=mibs
level=warn ts=2020-09-18T15:05:13.300Z caller=main.go:120 msg="NetSNMP reported parse error(s)" errors=1
level=info ts=2020-09-18T15:05:13.369Z caller=main.go:52 msg="Generating config for module" module=cisco_2960X
level=error
ts=2020-09-18T15:05:13.390Z caller=main.go:130 msg="Error generating
config netsnmp" err="cannot find oid '1.3.6.1.4.1.9.2.1.3' to walk"
Device: CISCO Catalyst 2960x
My generator.yml:
modules:
cisco_2960X:
version: 2
auth:
community: public
walk:
- 1.3.6.1.4.1.9.9.13.1.4 # Fan info
- 1.3.6.1.4.1.9.9.109.1.1.1.1 # CPU info
- 1.3.6.1.4.1.9.9.48 # memory info
- 1.3.6.1.4.1.9.2.1.3 # hostname
max_repetitions: 25
retries: 3
timeout: 5s
lookups:
- source_indexes: [bsnDot11EssIndex]
lookup: bsnDot11EssSsid
drop_source_indexes: true
- source_indexes: [bsnAPDot3MacAddress]
lookup: bsnAPName
drop_source_indexes: true
overrides:
ifType:
type: EnumAsInfo
CISCO mibs are prvided with make mibs as I found out, so... What could be wrong? If I remove hostname OID then it generates with no issues.