Hey - I've been having an issue with the generator. I have setup one that works for a similar MIB, but for some reason when I set up a very similar one for the same vendor the generator fails the walk. I double checked the OIDs and they seem to be correct.
uname -aDarwin (MacOS Mojave) Darwin Kernel Version 19.0.0
Device: Microhard-BulletPlusAC-CAT9
OIDs:
- 1.3.6.1.2.1.1.3 # UPTIME
- 1.3.6.1.4.1.21703.9000.5.4.6.0 # CORETEMP
/mibs directorygenerator.yml accordingly with proper OIDsSuccessful walk on the MIB's OIDs.
Example:
INFO[0000] Loading MIBs from mibs source="net_snmp.go:141"
WARN[0000] NetSNMP reported 7 parse error(s) source="main.go:104"
INFO[0000] Generating config for module bullet_plus_gps source="main.go:49"
INFO[0000] Generated 6 metrics for module bullet_plus_gps source="main.go:60"
INFO[0000] Config written to /opt/snmp.yml source="main.go:85"
Example:
INFO[0000] Loading MIBs from $HOME/.snmp/mibs:/usr/local/share/snmp/mibs:/usr/share/snmp/mibs source="net_snmp.go:141"
INFO[0000] Generating config for module bullet_plus_ac_cat9 source="main.go:49"
FATA[0000] Cannot find oid '1.3.6.1.4.1.21703.9000.5.4.16.0' to walk source="tree.go:290"Hey - I've been having an issue with the generator. I have setup one that works for a similar MIB, but for some reason when I set up a very similar one for the same vendor the generator fails the walk. I double checked the OIDs and they seem to be correct.
Host operating system: output of
uname -a
Darwin (MacOS Mojave) Darwin Kernel Version 19.0.0
What device/snmpwalk OID are you using?
Device: Microhard-BulletPlusAC-CAT9
OIDs:
- 1.3.6.1.2.1.1.3 # UPTIME - 1.3.6.1.4.1.21703.9000.5.4.6.0 # CORETEMP
If this is a new device, please link to the MIB(s).
What did you do that produced an error?
- Installed the generator per instructions:
- Added the target MIB file to
/mibsdirectory- Configured
generator.ymlaccordingly with proper OIDs- Ran the generator both locally and through Docker
What did you expect to see?
Successful walk on the MIB's OIDs.
Example:
INFO[0000] Loading MIBs from mibs source="net_snmp.go:141" WARN[0000] NetSNMP reported 7 parse error(s) source="main.go:104" INFO[0000] Generating config for module bullet_plus_gps source="main.go:49" INFO[0000] Generated 6 metrics for module bullet_plus_gps source="main.go:60" INFO[0000] Config written to /opt/snmp.yml source="main.go:85"
What did you see instead?Example:
INFO[0000] Loading MIBs from $HOME/.snmp/mibs:/usr/local/share/snmp/mibs:/usr/share/snmp/mibs source="net_snmp.go:141" INFO[0000] Generating config for module bullet_plus_ac_cat9 source="main.go:49" FATA[0000] Cannot find oid '1.3.6.1.4.1.21703.9000.5.4.16.0' to walk source="tree.go:290"This seems to happen with any custom MiB I try to add and run the generator on.
I've tried putting the MiBs in the folders net-snmp would look for them as well like `~/.snmp/mibs` & `/usr/share/snmp/mibs` but no difference.
--
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/248a7fa9-0559-4828-b664-85f698ebfb64%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/248a7fa9-0559-4828-b664-85f698ebfb64%40googlegroups.com.
that's not the problem. Tried both with and without 0's
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/1b3aa648-605e-47e6-b864-67cadc088b7b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/1b3aa648-605e-47e6-b864-67cadc088b7b%40googlegroups.com.
attached the MIB file here.
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/e59a6579-811b-4612-829f-a5bd03c75107%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e59a6579-811b-4612-829f-a5bd03c75107%40googlegroups.com.
Not entirely.I have the MIB both in the generator/mibs folder~/.snmp/mibs folder/use/share/snmp/mibs folderAnd I checked the directories my net-snmp should read from, and it lists both of the other directories.But I haven’t found a way to fully confirm that it’s loaded. Do you know how I could check that?
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/74d6e1b2-ccb8-491d-9553-6b64d83cf185%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/74d6e1b2-ccb8-491d-9553-6b64d83cf185%40googlegroups.com.
Thanks Brian, this narrows it down!
The MiB I'm trying to walk is indeed NOT in this dump. But the other almost identical MiB for a different microhard device is.
Any idea why my MiB isn't being loaded into the generator?
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/3978b579-f6de-4d25-9811-bc92f78490d2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3978b579-f6de-4d25-9811-bc92f78490d2%40googlegroups.com.