Ad Widget

Collapse

Regex to check if snmp value is positive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • netjordan
    Junior Member
    • May 2016
    • 3

    #1

    Regex to check if snmp value is positive

    Hello,

    I'm setting up a template for some devices with external temperature sensors.

    I'm polling them using SNMP and getting data back fine. To read the current temperature reading I poll an OID. If the temperature sensor is connected, it returns the temperature (x 10), if its not connected it returns -1.

    I've tried to setup a discovery rule filter to prevent the temperature item being enabled when the sensor is not connected.

    I've attached screenshots of the discovery rule filter settings and also the global regex filter I have created. When testing this (with the testing tool) it seems to work fine, however the Items are not being added.

    Anyone see the problem?
    Attached Files
Working...