snmp_exporter icon indicating copy to clipboard operation
snmp_exporter copied to clipboard

Feature request: Additional flags

Open udf2457 opened this issue 6 years ago • 4 comments

Hi,

Would be good to have a few more flags, paricularly the ability to override locations for snmp.yml, generator.yml and mibs/

udf2457 avatar Sep 18 '19 16:09 udf2457

The mibs location is up to netsnmp. Why do you want to have different paths for the generator files?

brian-brazil avatar Sep 18 '19 16:09 brian-brazil

Different paths because I might not be calling generator from the directory. Also there could be use-cases where generator output needs to go somewhere else first before rolling out (e.g. generating alternative configs for test ?)

udf2457 avatar Sep 18 '19 16:09 udf2457

You can manipulate netsnmp paths with env variables like export MIBDIRS=+/home/tarko/.snmp/alcatel-7750:/home/tarko/.snmp/JuniperMibs before you execute generator

tarko avatar Oct 26 '19 12:10 tarko

I think having flags for the input/output file locations is reasonable, just like having the same flag(s) for the config itself.

SuperQ avatar Oct 27 '19 10:10 SuperQ

Fixed in #1028

SuperQ avatar Feb 04 '24 08:02 SuperQ