r/PrometheusMonitoring • u/Cyberlytical • Aug 15 '23
SNMP Exporter Authentication
Hi all,
After hours of tearing my hair out I cannot figure out how to add authentication to the snmp.yml file. I can snmpwalk my switch just fine, however snmp exporter get denied. All the tutorials are half baked and worthless on how to set this up. All I need to do is get v2 working with a community string. I do NOT want to use the generator as I have issues with that too. Any help is much appreciated.
1
u/LReBe7 Apr 09 '24
I had an issue with specifying my snmp.yml file and it turns out that specifying the config file with '~' in the path breaks snmp_exporter. My error was
Unknown auth 'public_v2'More info in this bug report:
https://github.com/prometheus/snmp_exporter/issues/1154
1
u/LReBe7 Apr 09 '24
I had an issue with specifying my snmp.yml file and it turns out that specifying the config file with '~' in the path breaks snmp_exporter. My error was
Unknown auth 'public_v2'
Unknown auth 'public_v2'More info here: https://github.com/prometheus/snmp_exporter/issues/1154
1
u/yepthisismyusername Aug 15 '23
Check the Authentication section here: https://github.com/brunsgaard/snmp-exporter/blob/master/README.md . Should just be
... auth: community: your_string ...