I'd like to extend the question to the following use case. I'm using
NET-SNMP-EXTEND-MIB
with snmpd to call some scripts and return some values via SNMP to our old
SNMP monitoring system. Something like:
```
exec java_proc  /bin/bash       /home/java_mem_usage.sh
```
That I can query with:
```
[root@server ~]# snmpwalk -v2c -c secret_community localhost
.1.3.6.1.4.1.2021.8.1.101.1
UCD-SNMP-MIB::extOutput.1 = STRING: 8829116416

What is the best way to have snmp_exporter scrape these manual OIDs for
some servers? The generator won't add them because they're not part of its
templates. I'm considering exposing the information via node_exporter's
text file exporter, but it requires tweaking to bypass SNMP.

Thanks!

On Fri, Nov 26, 2021 at 11:17 AM Tristan Colgate <[email protected]> wrote:

> You also won't get table indexes translated, which often contain useful
> context.
>
> On Fri, 26 Nov 2021, 08:40 Brian Candler, <[email protected]> wrote:
>
>> [Note: this isn't really a question about prometheus]
>>
>> You can capture information using SNMP without MIB files, just by
>> querying a particular numeric OID.  But the data you get back may not make
>> any sense to you.  You will be able to see the *type* of each datum -
>> integer, string, IP Address etc - but will have a hard time ascribing a
>> meaning to each one.
>>
>> Using netsnmp, try:
>> snmpbulkwalk -On <device> 1.3.6.1.4.1
>> to walk the vendor-specific (enterprise) MIB for that device.  You may
>> need to add authentication flags, e.g. "-v2c public", unless you have
>> authentication configured in /etc/snmp/snmp.conf
>>
>> --
>> 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/b9e1fd93-7b68-4940-9fff-942e97da98d0n%40googlegroups.com
>> <https://groups.google.com/d/msgid/prometheus-users/b9e1fd93-7b68-4940-9fff-942e97da98d0n%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/CAPGZSGJUEuB0jozYtWx5W7fEY%2BhDBt9NyQz28%2BWP9jJ07cUmYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/prometheus-users/CAPGZSGJUEuB0jozYtWx5W7fEY%2BhDBt9NyQz28%2BWP9jJ07cUmYw%40mail.gmail.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/CAOKso17vng7G%3DSQDY-Yx301qgVMwmzaaCeso7ScSKD_gXkhT2A%40mail.gmail.com.

Reply via email to