./generator generatelevel=info ts=2020-07-16T06:55:09.662Z 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/netsnmplevel=warn ts=2020-07-16T06:55:09.821Z caller=main.go:120 msg="NetSNMP reported parse error(s)" errors=1level=info ts=2020-07-16T06:55:10.003Z caller=main.go:52 msg="Generating config for module" module=ROOMALERT32E-MIBlevel=error ts=2020-07-16T06:55:10.047Z caller=main.go:130 msg="Error generating config netsnmp" err="cannot find oid '.1.3.6.1.4.1.20916.1.8.1.2.1.1' to walk"
snmpwalk -v 1 -c public 172.18.232.17 .1.3.6.1.4.1.20916.1.8.1.2.1.1ROOMALERT32E-MIB::digital-sen1-1.0 = INTEGER: 2750
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/83ad6dbc-0f11-4433-88d5-d53f64e15b61o%40googlegroups.com.
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/951c906d-ed4a-4ef7-935f-9163a8c6ada9n%40googlegroups.com.
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:
./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"
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
The leading dot is the problem.
On Sat, Jul 18, 2020, 14:57 Linkoid01 <silv...@gmail.com> wrote:
Thanks for that, completely forgot about that.Here's what I have in the generator.yml filemodules:# AVTech RoomAlert 32EROOMALERT32E-MIB:walk:# internal- .1.3.6.1.4.1.20916.1.8.1.1version: 1auth:comunity: publiclookups:- 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 promethe...@googlegroups.com.
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 32EROOMALERT32E-MIB:walk:
- 1.3.6.1.4.1.20916.1.8.1.1.1.1version: 1auth:# 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 generatelevel=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/netsnmplevel=warn ts=2020-07-19T06:27:34.004Z caller=main.go:120 msg="NetSNMP reported parse error(s)" errors=1level=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.1ROOMALERT32E-MIB::internal-tempf.0 = INTEGER: 7826
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a9c65275-259d-4d6b-8a9d-48a23410947an%40googlegroups.com.