Ad Widget

Collapse

SNMP discovery of non-sequence OIDs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hoomanv
    Junior Member
    • Aug 2022
    • 1

    #1

    SNMP discovery of non-sequence OIDs

    Hello,

    I have a SNMP device which defines sensor names under the following OIDs:

    1.3.6.1.4.1.38783.4.2.2.1.1.1.0 = STRING: "S1"
    1.3.6.1.4.1.38783.4.2.2.1.2.1.0 = STRING: "S2"
    ...
    1.3.6.1.4.1.38783.4.2.2.1.N.1.0 = STRING: "SN"


    How can I write a rule to discover sensor names and indices?
    These OIDs are not under a single sequence so it is not possible to fetch them in a single query.
    The following discovery rule does not work

    discovery[{#SNMPVALUE},1.3.6.1.4.1.38783.4.2.2.1.{#SNMPINDEX }.1.0]
Working...