On Friday, 14 February 2025 at 15:53:24 UTC Jeff Peters wrote:

I'm extremely new to prometheus for my company, and I'm looking to get 
snmp_exporter functioning. Im mainly wanting to poll cisco routers and 
switches utilizing snmpv3. What I'm finding is a few things.

1.) I can get snmpv2 working and polling when I'm in debug mode, but can't 
seem to get V3 working via the generator. I don't get an error, it just 
doesn't seem to even try to poll


You need to show exactly what you're doing, what commands you're running, 
what responses you get.

However, I suggest you start by using the supplied snmp.yml and not hacking 
around with generator. That is, start by polling one of the supplied mibs 
like if_mib.
 


2.) How do I poll another file that has all of the OID/MIB information? I'd 
prefer to not having to keep touching the snmp.yaml file. 


snmp_exporter --config.file=/etc/prometheus/snmp.d/*.yml

This means that for example you can add your own 'auths' section in a 
separate file (say /etc/prometheus/snmpd./auth.yml), and not touch the 
vanilla snmp.yml
 

Does anyone have a .yaml that is scrubbed, but in the proper format to look 
at cisco stuff and v3 that I can work off of? 

Otherwise, any idea why v3 wouldn't work?


Depends what SNMP settings you're using. If you're using privacy, AES 
should be OK but note that Cisco uses a proprietary, incompatible version 
of AES192 and AES256 (which you can select using AES192C or AES256C)

-- 
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 visit 
https://groups.google.com/d/msgid/prometheus-users/9bad4c12-a995-42c7-abb9-f6036dea8520n%40googlegroups.com.

Reply via email to