Skip to content

Not getting values for OIDs specified in walk, only their childs when using generator. #1540

@filimonic

Description

@filimonic

Issue:
Not getting values for OIDs specified in walk, only their parents.

#modules:
  vinteo_vcs:
    walk:
      # Specific conference scalar OIDs (NOT the parent .1)
      - 1.3.6.1.4.1.57528.825.836.1.2   # TotalOnlineClients
      - 1.3.6.1.4.1.57528.825.836.1.3   # ConferencesTotal
      - 1.3.6.1.4.1.57528.825.836.1.4   # ConferencesTotalActive
      - 1.3.6.1.4.1.57528.825.836.1.5   # P2Prooms
      - 1.3.6.1.4.1.57528.825.836.1.6   # PurgatoryConnections
    
    overrides:
      # Conference scalar metrics
      vinteoVcsWebConferencesTotalOnlineClients:
        type: gauge
      vinteoVcsWebConferencesTotal:
        type: gauge
      vinteoVcsWebConferencesTotalActive:
        type: gauge
      vinteoVcsWebConferencesP2Prooms:
        type: gauge
      vinteoVcsWebConferencesPurgatoryConnections:
        type: gauge
  vinteo_vcs:
    get:
    - 1.3.6.1.4.1.57528.825.836.1.2.0
    - 1.3.6.1.4.1.57528.825.836.1.3.0
    - 1.3.6.1.4.1.57528.825.836.1.4.0
    - 1.3.6.1.4.1.57528.825.836.1.5.0
    - 1.3.6.1.4.1.57528.825.836.1.6.0
    metrics:
    - name: vinteoVcsWebConferencesTotalOnlineClients
      oid: 1.3.6.1.4.1.57528.825.836.1.2
      type: gauge
      help: Total amount of online clients in all conferences - 1.3.6.1.4.1.57528.825.836.1.2
    - name: vinteoVcsWebConferencesTotal
      oid: 1.3.6.1.4.1.57528.825.836.1.3
      type: gauge
      help: Total amount of setup conferences on the server - 1.3.6.1.4.1.57528.825.836.1.3
    - name: vinteoVcsWebConferencesTotalActive
      oid: 1.3.6.1.4.1.57528.825.836.1.4
      type: gauge
      help: Total amount of currently active conferences - 1.3.6.1.4.1.57528.825.836.1.4
    - name: vinteoVcsWebConferencesP2Prooms
      oid: 1.3.6.1.4.1.57528.825.836.1.5
      type: gauge
      help: Total amount of p2p connecions (p2p rooms) - 1.3.6.1.4.1.57528.825.836.1.5
    - name: vinteoVcsWebConferencesPurgatoryConnections
      oid: 1.3.6.1.4.1.57528.825.836.1.6
      type: gauge
      help: Total amount of automatic attendant connections (e.g - 1.3.6.1.4.1.57528.825.836.1.6
    max_repetitions: 25
    retries: 3
    timeout: 5s

I expect that problem is generator generating .0 at the end.
If i replace those OIDs with single - 1.3.6.1.4.1.57528.825.836.1, then I get all I want plus HUUUGE 1.3.6.1.4.1.57528.825.836.1.1, that should be not requested

Should i manually modify snmp.yml after generator, or there exists some kind of flag to get the specified id, not it's childs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions