SNMP generator - can't get the hostName for CISCO Catalyst 2960x

107 views
Skip to first unread message

dykow

unread,
Sep 21, 2020, 4:32:50 AM9/21/20
to Prometheus Users

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.

dykow

unread,
Sep 21, 2020, 4:53:42 AM9/21/20
to Prometheus Users

Ben Kochie

unread,
Sep 21, 2020, 4:59:59 AM9/21/20
to dykow, Prometheus Users
That OID looks like it's part of an obsolete cisco v1 MIB.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/94ed5a69-fb1e-43b6-8068-6312f0ce9ca3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages