Replies: 1 comment
-
You should change the module: [] in your scrape configs to match the module from snmp.yml (or probably change the snmp.yml to match the one you want as it currently is "module_name"). Probably need to add the auth: [] param there as well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm just trying to scrape 2 OIDs using SNMP_Exporter, but something isn't working as I get an error of:
server returned HTTP status 400 Bad Request
Here is my generator.yml
I create the snmp.yml
Which looks like this:
Copy my custom mib file GDS-DIAG-MIB.mib to /usr/share/snmp/mibs as it seem to look there.
Copy the generated snmp.yml to my snmp_exporter docker volume:
/var/lib/docker/volumes/snmp-exporter-etc/_data/snmp.yml
Add to the Prometheus.yml to scrape, I've removed the other bits:
Restart Prometheus container.
SNMP Exporter - server returned HTTP status 400 Bad Request
If I do an SNMP walk from the VM docker is on they work too.
Docker info
Any help would be most appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions