snmp_exporter icon indicating copy to clipboard operation
snmp_exporter copied to clipboard

NET-SNMP-URL in generator's Makefile

Open TwistWR opened this issue 3 years ago • 1 comments

NET-SNMP-URL is disabled in the generator's makefile.

I can't download file from this url. https://raw.githubusercontent.com/net-snmp/net-snmp/v5.9/mibs When I cry to open it , return 404.
Is there another place or url where I can download the relevant files?

TwistWR avatar May 28 '22 09:05 TwistWR

You need to specify a file, mibs/ is just a directory and GitHub doesn't allow directory listings. For example: https://raw.githubusercontent.com/net-snmp/net-snmp/v5.9/mibs/AGENTX-MIB.txt. You can find the listing on https://github.com/net-snmp/net-snmp/tree/v5.9/mibs.

As you can see from the Makefile, we download specific files, not the whole directory: https://github.com/prometheus/snmp_exporter/blob/8678b6022c439074555f958fdaa54517c10ee711/generator/Makefile#L184-L198

daenney avatar May 30 '22 15:05 daenney