-
I am quite inexperienced with this connector. I am wondering if the generator function can be tweaked to work in an offline environment. From what I can tell in the makefile, there are a number of default/standard MIBs that get downloaded/updated and placed in the mibs folder. Is there a way that I can just manually copy any and all MIB files I need to the mibs folder, edit the generator.xml file with my auth details, and build the snmp.yml file for my offline environment? I have tried to do this, but the first command |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If offline is not possible, perhaps I could do the generate function from a computer connected to the internet, then copy my snmp.yml file to my offline environment? If that is possible, I am still running into errors with the first step: This is returning an error: myuser@host ~/git/snmp_exporter/generator $ make generator mibs
go build
go: errors parsing go.mod:
/home/myuser/git/snmp_exporter/go.mod:5: unknown directive: toolchain
make: *** [Makefile:90: generator] Error 1 |
Beta Was this translation helpful? Give feedback.
-
Yes, you can download all the MIBs and copy them to the offline environment. The |
Beta Was this translation helpful? Give feedback.
Yes, you can download all the MIBs and copy them to the offline environment.
The
make mibs
is there because we want to make sure our system provides reproducible builds. But we technically can't include the MIB files in our repo because most MIB files are copyrighted and don't have an open-source compatible redistribution license.