Ad Widget

Collapse

SNMP LLD with Multiple OID, Filters if one has no value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #1

    SNMP LLD with Multiple OID, Filters if one has no value

    If I have a multiple item LLD discovery, e,g.

    discovery[{#VAL1},SOMEMIB:OID1, {#VAL2},OTHERMIB:OID2]

    I want to write a filter condition that says "use this discovery only if {#VAL2} is not returned."

    I've tried matching {#VAL2} to blank, ^$, and various other things without success as the match pattern in the filter without luck. The documentation says

    Can this be done?

    The manual says:

    Code:
    Note that if some macro from the filter is missing in the response, the found entity will be ignored.
    But I do not know what "the found entity" means in this regard, unless it means the filter condition is always false? The behavior is indeed that it does not discover, and I want exactly the opposite behavior (including that it not discover when the value is found).
Working...