SNMP Exporter Config Generator
This config generator uses NetSNMP to parse MIBs, and generates configs for the snmp_exporter using them.
Building
sudo apt-get install build-essential libsnmp-dev snmp-mibs-downloader # Debian-based distros
go build
Running
./generator generate
The generator reads in from generator.yml
and writes to snmp.yml
.
Additional command are available for debugging, use the help
command to see them.
Where to get MIBs
Some of these are quite sluggish, so use wget to download.
Put the extracted mibs in a location NetSNMP can read them from. $HOME/.snmp/mibs
is one option.
https://github.com/librenms/librenms/tree/master/mibs can also be a good source of MIBs.