prometheus / snmp_exporter

SNMP Exporter for Prometheus
Apache License 2.0
1.7k stars 630 forks source link

NET-SNMP-URL in generator's Makefile #761

Open TwistWR opened 2 years ago

TwistWR commented 2 years ago

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?

daenney commented 2 years ago

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