Thank you very much for your help thus far. However I am still not able to 
get it to generate.
I removed the leading dot. My generator.yml file looks like this now:

modules:
> # AVTech RoomAlert 32E
>  ROOMALERT32E-MIB:
>     walk:
>       - 1.3.6.1.4.1.20916.1.8.1.1.1.1
>    version: 1
>     auth:
>       # Community string is used with SNMP v1 and v2. Defaults to "public".
>       community: public
> #    lookups:
> #      - source_indexes:
> #        lookup:
> #      - source_indexes:
> #        lookup:
> #    overrides:



I am getting the following message:

> ./generator generate
> level=info ts=2020-07-19T06:27:33.832Z caller=net_snmp.go:142 msg="Loading 
> MIBs" 
> from=$HOME/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
> level=warn ts=2020-07-19T06:27:34.004Z caller=main.go:120 msg="NetSNMP 
> reported parse error(s)" errors=1
> level=error ts=2020-07-19T06:27:34.185Z caller=main.go:130 msg="Error 
> generating config netsnmp" err="error parsing yml config: yaml: line 5: did 
> not find expected key"


I removed lookups and there are no indexes mentioned in this MIB for this 
device.

I can perform snmpwalk on this oid just fine:

snmpwalk -v 1 -c public 172.18.232.17 .1.3.6.1.4.1.20916.1.8.1.1.1.1
> ROOMALERT32E-MIB::internal-tempf.0 = INTEGER: 7826


On Sunday, July 19, 2020 at 12:20:41 AM UTC+8, Ben Kochie wrote:
>
> The leading dot is the problem.
>
> On Sat, Jul 18, 2020, 14:57 Linkoid01 <[email protected] <javascript:>> 
> wrote:
>
>> Thanks for that, completely forgot about that.
>> Here's what I have in the generator.yml file
>>
>> modules:
>> # AVTech RoomAlert 32E
>>   ROOMALERT32E-MIB:
>>     walk:
>> # internal
>>       - .1.3.6.1.4.1.20916.1.8.1.1
>>     version: 1
>>     auth:
>>       comunity: public
>>     lookups:
>>       - source_indexes:
>>         lookup:
>>       - source_indexes:
>>         lookup:
>>     overrides:
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/951c906d-ed4a-4ef7-935f-9163a8c6ada9n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/951c906d-ed4a-4ef7-935f-9163a8c6ada9n%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/3fc617d3-7fac-4f73-9cc7-7f9fd430d0b1o%40googlegroups.com.

Reply via email to