Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snmp-generator Error during parsing MIB AlteonSwitch #1030

Closed
ISekan opened this issue Oct 26, 2023 · 0 comments
Closed

Snmp-generator Error during parsing MIB AlteonSwitch #1030

ISekan opened this issue Oct 26, 2023 · 0 comments

Comments

@ISekan
Copy link

ISekan commented Oct 26, 2023

Linux 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 22 17:39:05 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux
snmp_exporter-0.24.1.linux-amd64
http://www.circitor.fr/Mibs/Html/A/ALTEON-CHEETAH-SWITCH-MIB.php
Clipboard01

generator.yml

auths:
  auth_name:
    version: 2
    community: public

modules:
  alteon:  # The module name. You can have as many modules as you want.
    walk:       # List of OIDs to walk. Can also be SNMP object names or specific instances.
      - capacityUsageStats
      - 1.3.6.1.4.1.1872.2.5.1.2.12`

export MIBDIRS=/opt/snmp_generator/alteon_mibs
./generator generate --log.level=debug

ts=2023-10-26T06:23:25.666Z caller=net_snmp.go:162 level=info msg="Loading MIBs" from=/opt/snmp_generator/alteon_mibs
ts=2023-10-26T06:23:25.690Z caller=main.go:122 level=warn msg="NetSNMP reported parse error(s)" errors=4827
ts=2023-10-26T06:23:25.692Z caller=main.go:53 level=info msg="Generating config for module" module=alteon
ts=2023-10-26T06:23:25.692Z caller=main.go:132 level=error msg="Error generating config netsnmp" err="cannot find oid '1.3.6.1.4.1.1872.2.5.1.2.12' to walk"

./generator parse_errors

MIB search path: /opt/snmp_generator/alteon_mibs
Unlinked OID in ALTEON-CHEETAH-SWITCH-MIB: agent ::= { aws-switch 1 }
Undefined identifier: aws-switch near line 24 of /opt/snmp_generator/alteon_mibs/ALTEON-CHEETAH-SWITCH-MIB.mib
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: eventCountersSpTableEntry ::= { eventCountersSpTable 1 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: agSecurityIpAclStatsTableEntry ::= { agSecurityIpAclStatsTable 1 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: ipRepCurCfgCountriesCountry ::= { ipRepCurCountriesTableEntry 2 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: ipRepCurCfgCountriesIndex ::= { ipRepCurCountriesTableEntry 1 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: ipRepNewCfgCountriesCountry ::= { ipRepNewCountriesTableEntry 2 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: ipRepNewCfgCountriesIndex ::= { ipRepNewCountriesTableEntry 1 }
Cannot adopt OID in ALTEON-CHEETAH-SWITCH-MIB: switchCapSlbPortInfoTableEntry ::= { switchCapSlbPortInfoTable 1 }
@prometheus prometheus locked and limited conversation to collaborators Oct 26, 2023
@SuperQ SuperQ converted this issue into discussion #1031 Oct 26, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant