Skip to content
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

[BUG] snmp collector get apr info from h3c_switch but some mac addr info get error String #2840

Open
1 task done
ytmflcel321 opened this issue Nov 27, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ytmflcel321
Copy link

ytmflcel321 commented Nov 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

only two mac addr had this error
企业微信截图_17326770052326
企业微信截图_17326765571329
企业微信截图_17326766651326

Expected Behavior

get right mac info

Steps To Reproduce

collect config info

 - name: arpinfo
    i18n:
      zh-CN: ARP表项
      en-US: ARP Table
    priority: 1
    fields:
      - field: ifIndex
        type: 1
        i18n:
          zh-CN: 本端接口索引
          en-US: Local Interface Index
      - field: dstIp
        type: 1
        label: true
        i18n:
          zh-CN: 对端IP
          en-US: Dst IP
      - field: dstMac
        type: 1
        i18n:
          zh-CN: 对端MAC
          en-US: Dst Mac
    # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field
    aliasFields:
      - ifIndex
      - dstIp
      - dstMac
    # calculates:
    #   - ifIndex=convertMacAndVlan(ifIndex)
    #   - descr=ifDescr
    # mapping and conversion expressions, use these and aliasField above to calculate metrics value
    # eg: cores=core1 core2, usage=usage, waitTime=allTime-runningTime
    protocol: snmp
    snmp:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      authPassphrase: ^_^authPassphrase^_^
      privPassphrase: ^_^privPassphrase^_^
      privPasswordEncryption: ^_^privPasswordEncryption^_^
      authPasswordEncryption: ^_^authPasswordEncryption^_^
      contextName: ^_^contextName^_^
      timeout: ^_^timeout^_^
      community: ^_^community^_^
      version: ^_^snmpVersion^_^
      operation: walk
      oids:
        ifIndex: 1.3.6.1.2.1.3.1.1.1
        dstIp: 1.3.6.1.2.1.3.1.1.3
        dstMac: 1.3.6.1.2.1.3.1.1.2

Environment

HertzBeat version(s):1.6.1

Debug logs

No response

Anything else?

No response

@ytmflcel321 ytmflcel321 added the bug Something isn't working label Nov 27, 2024
@ytmflcel321 ytmflcel321 changed the title [BUG] <title>snmp collector get apr info from h3c_switch but some mac addr info get error String [BUG] snmp collector get apr info from h3c_switch but some mac addr info get error String Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant