Did you read the error messages? Your MIBDIRS are missing a number of MIBs in order to satisfy all the requirements.
Either find the missing MIBs, or set the `MIBDIRS` env var to point at the generator example "mibs" dir that is created with `make mibs`. On Mon, Sep 9, 2024 at 1:50 PM Mitchell Laframboise < [email protected]> wrote: > I am trying to generate an snmp.yml and have removed all sections from the > generator.yml except for if-mib and I'm getting all these parse errors and > I don't know why. > > ./generator parse_errors > ts=2024-09-09T11:22:12.963Z caller=net_snmp.go:175 level=info msg="Loading > MIBs" > from=$HOME/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf > ts=2024-09-09T11:22:13.109Z caller=main.go:177 level=warn msg="NetSNMP > reported parse error(s)" errors=36 > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-STORAGE-MEDIA-TYPE-MIB from="At line 19 in > /usr/share/snmp/mibs/ietf/VM-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IEEE8021-CFM-MIB from="At line 30 in > /usr/share/snmp/mibs/ietf/TRILL-OAM-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=LLDP-MIB from="At line 35 in > /usr/share/snmp/mibs/ietf/TRILL-OAM-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-SMF-MIB from="At line 28 in /usr/share/snmp/mibs/ietf/SMF-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-ENTITY-MIB from="At line 18 in > /usr/share/snmp/mibs/ietf/ENTITY-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANAPowerStateSet-MIB from="At line 20 in > /usr/share/snmp/mibs/ietf/ENERGY-OBJECT-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-OLSRv2-LINK-METRIC-TYPE-MIB from="At line 26 in > /usr/share/snmp/mibs/ietf/OLSRv2-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-ENERGY-RELATION-MIB from="At line 22 in > /usr/share/snmp/mibs/ietf/ENERGY-OBJECT-CONTEXT-MIB" > ts=2024-09-09T11:22:13.109Z caller=main.go:183 level=error msg="Missing > MIB" mib=IANA-BFD-TC-STD-MIB from="At line 30 in > /usr/share/snmp/mibs/ietf/BFD-STD-MIB" > ts=2024-09-09T11:22:13.232Z caller=tree.go:83 level=warn msg="Can't find > augmenting node" augments=dot1agCfmMepEntry node=trillOamMepEntry > ts=2024-09-09T11:22:13.232Z caller=tree.go:83 level=warn msg="Can't find > augmenting node" augments=dot1agCfmMepDbEntry node=trillOamMepDbEntry > MIB search path: > /home/mitchell/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf > Cannot find module (IANA-STORAGE-MEDIA-TYPE-MIB): At line 19 in > /usr/share/snmp/mibs/ietf/VM-MIB > Did not find 'IANAStorageMediaType' in module #-1 > (/usr/share/snmp/mibs/ietf/VM-MIB) > Cannot find module (IEEE8021-CFM-MIB): At line 30 in > /usr/share/snmp/mibs/ietf/TRILL-OAM-MIB > Cannot find module (LLDP-MIB): At line 35 in > /usr/share/snmp/mibs/ietf/TRILL-OAM-MIB > Did not find 'dot1agCfmMdIndex' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'dot1agCfmMaIndex' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'dot1agCfmMepIdentifier' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'dot1agCfmMepEntry' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'dot1agCfmMepDbEntry' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'Dot1agCfmIngressActionFieldValue' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'Dot1agCfmEgressActionFieldValue' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'Dot1agCfmRemoteMepState' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'LldpChassisId' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'LldpChassisIdSubtype' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'LldpPortId' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Did not find 'LldpPortIdSubtype' in module #-1 > (/usr/share/snmp/mibs/ietf/TRILL-OAM-MIB) > Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDU > Cannot find module (IANA-SMF-MIB): At line 28 in > /usr/share/snmp/mibs/ietf/SMF-MIB > Did not find 'IANAsmfOpModeIdTC' in module #-1 > (/usr/share/snmp/mibs/ietf/SMF-MIB) > Did not find 'IANAsmfRssaIdTC' in module #-1 > (/usr/share/snmp/mibs/ietf/SMF-MIB) > Cannot find module (IANA-ENTITY-MIB): At line 18 in > /usr/share/snmp/mibs/ietf/ENTITY-MIB > Did not find 'IANAPhysicalClass' in module #-1 > (/usr/share/snmp/mibs/ietf/ENTITY-MIB) > Cannot find module (IANAPowerStateSet-MIB): At line 20 in > /usr/share/snmp/mibs/ietf/ENERGY-OBJECT-MIB > Did not find 'PowerStateSet' in module #-1 > (/usr/share/snmp/mibs/ietf/ENERGY-OBJECT-MIB) > Cannot find module (IANA-OLSRv2-LINK-METRIC-TYPE-MIB): At line 26 in > /usr/share/snmp/mibs/ietf/OLSRv2-MIB > Did not find 'IANAolsrv2LinkMetricTypeTC' in module #-1 > (/usr/share/snmp/mibs/ietf/OLSRv2-MIB) > Cannot find module (IANA-ENERGY-RELATION-MIB): At line 22 in > /usr/share/snmp/mibs/ietf/ENERGY-OBJECT-CONTEXT-MIB > Did not find 'IANAEnergyRelationship' in module #-1 > (/usr/share/snmp/mibs/ietf/ENERGY-OBJECT-CONTEXT-MIB) > Cannot find module (IANA-BFD-TC-STD-MIB): At line 30 in > /usr/share/snmp/mibs/ietf/BFD-STD-MIB > Did not find 'IANAbfdDiagTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > Did not find 'IANAbfdSessTypeTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > Did not find 'IANAbfdSessOperModeTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > Did not find 'IANAbfdSessStateTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > Did not find 'IANAbfdSessAuthenticationTypeTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > Did not find 'IANAbfdSessAuthenticationKeyTC' in module #-1 > (/usr/share/snmp/mibs/ietf/BFD-STD-MIB) > > I had this working on a different VM about 7 or 8 months ago and I > followed the same steps to set it up. I'm not sure why snmp mibs > downloader didn't download all the mibs? > > > -- > 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/44880315-e5ac-4ca3-9d74-2d6ac8ff82c7n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/44880315-e5ac-4ca3-9d74-2d6ac8ff82c7n%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/CABbyFmoSbJzaURQszwP-omYLMK9ch49Nn-mtbw8zYdKrAiFOig%40mail.gmail.com.

