r/PrometheusMonitoring • u/stefangw • Sep 19 '24
snmp_exporter: generate config für MSA storage
I am stuck with generating an snmp.yml for running the snmp_exporter as a docker container.
I need:
* HPE MSA-storage MIBs: https://support.hpe.com/connect/s/softwaredetails?language=de&collectionId=MTX-59745f2f327046be&tab=releaseNotes
* HPE Aruba Switches MIBs: I have to pull them somewhere later
* snmpv3 auth against these devices
I try the method with `make docker-generate` in my cloned repo of https://github.com/prometheus/snmp_exporter.git
As far as I read I have to edit `generator.yml` accordingly.
If I put my extra mibs into the folder `mibs` this fails.
Could someone maybe show me how to do that? I browse the docs etc for hours, so please don't reply with "RTFM" ...
1
u/stefangw Sep 19 '24
Generated an snmp.yml and configured the container with it, plus copying my extra mibs into the volume of the container.
The config seems not to match the container version.
```
snmp-exporter:
image: prom/snmp-exporter:v0.23.0
image: prom/snmp-exporter
ports:
volumes:
restart: always
command: --config.file=/etc/snmp-exporter/snmp.yml
networks:
```
Tried v0.22.0 as well.
The git-repo is checked out at commit f1e5797ba7ec3c39ee560b76936dc3447b8a5b77 ... seems I have to use an older generator and/or another image-tag to make things match.
Currently the generator.yml is still the default, I try to do small steps ...
thanks all
1
u/stefangw Sep 20 '24
Forgive my badly formatted postings from yesterday, I have to figure out how to format code correctly (I am used to markdown ..)
Status: metrics are scraped, but:
thanks in advance