Currently using snmp_exporter version 0.25.0

The problem I had with SNMPv3 has been solved by recompiling generator.yml!

However, the if_mib used by default uses the standard SMP management 
protocol. Some functions on network devices cannot be monitored. You need 
to add the manufacturer's private MIB OID value to be monitored, for 
example:
get:
    - 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5
   - 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7

-name: hwEntityCpuUsage
  oid: 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5
   type: Integer
   help: entity CPU usage value range: 0~100
-name: hwEntityMemUsage
   oid: 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.7
    type:Integer
   help:Machine memory usage, value range: 0~100

I loaded the above configuration section into the generator.yml file and 
recompiled it. The generated snmp.yml did not have the above configuration 
section. I manually added it to the compiled snmp.yml file. There was no 
error message at startup. Check /snmp?target= 
xx.xxx.xxx.xxx&auth=snmp_v3&module=if_mib, but I can’t see the oid I added 
get, even if I add the following configuration

walk:
    - 1.3.6.1.4.1.2011.5.25.31

Still can't see it after startup!

Final note: I can obtain the above OID values normally using snmpwalk in 
the same environment. How should I set snmp_exporter correctly?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9fcf5d63-20ca-45bb-8263-2a6e15302023n%40googlegroups.com.

Reply via email to