The thing you want to do is use the snmp_exporter generator. This will
correctly parse the MIB and produce a valid snmp_exporter module config.
Something like this works:
modules:
ethernetbox:
walk:
- version
- location
- sensorTable
lookups:
- source_indexes: [sensorindex]
lookup: name
https://github.com/SuperQ/tools/tree/master/snmp_exporter/ethernetbox
On Fri, Jun 14, 2024 at 12:20 PM Alex Veso <[email protected]> wrote:
> Hello,
>
> I have to setup a config to scrape the metrics from an MessPC EthernetBox.
> Those devices are pretty old and doesn't support SNMP-systemgroups due to
> storage limitations (don't know what this means, that's what their support
> told me).
>
> I attached the result of an snmp walk (snmp_walk.txt).
> And here the link for the mib
> https://messpc.de/MIB/betternetworks_ethernetbox.mib
>
> I was already able to get the values for those metrics.
> (snmp_config_for_now.txt)
> But I'm trying to add the generic information in
> 1.3.6.1.4.1.14848.2.1.1.x.x like LocationName, Version, etc
> i tried it like this, but my result is empty :/
>
> - name: snmp_messpc_info
> oid: 1.3.6.1.4.1.14848.2.1.1.5.0
> type: gauge
> indexes:
> - labelname: messPcInfo
> type: gauge
> lookups:
> - labels:
> - messPcSensorIndex
> labelname: messPcLocation
> oid: 1.3.6.1.4.1.14848.2.1.1.2.0
> type: DisplayString
> Can somebody help me out? :S
>
> Many thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/2b13aacd-ff00-479a-a623-40f3462aececn%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/2b13aacd-ff00-479a-a623-40f3462aececn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/CABbyFmp4FCtfWz65Kc72mey71i1Tg7S%2B1dR8R94DByEBZGTsvQ%40mail.gmail.com.