I have found missing MIB file 
https://snmp.cloudapps.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.4.1.9.2.1.3.
 

Now it seems to work.
poniedziałek, 21 września 2020 o 10:32:50 UTC+2 dykow napisał(a):

>
> 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=mibslevel=warn ts=2020-09-18T15:05:13.300Z 
> caller=main.go:120 msg="NetSNMP reported parse error(s)" errors=1level=info 
> ts=2020-09-18T15:05:13.369Z caller=main.go:52 msg="Generating config for 
> module" module=cisco_2960Xlevel=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.
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/284dee63-db7a-4056-ab45-9dad26665fd8n%40googlegroups.com.

Reply via email to