I have several temperature sensors I'm monitoring through SNMP from a company called ServersCheck. I found and converted the MIBs to OIDs. The sensors have separate OIDs for value and error state. I can set the error ranges inside the ServersCheck device to tell it when to alert, but this means I have one sensor showing me the value and another showing me the error state. I'd like to configure the value sensor to trigger alarms in PRTG. I've setup the regex \d+\.\d+ to pull out a float from the response and set the default channel to "Extracted Value". This gets me the graphing and such that I'm looking for; however, I'm still not getting error and warning states out of it.
I tried ^[1]*$ for an error regular expression and ^[9]*$ as a warning regex. The though is if the sensor is in the 90s I should get a warning and if it gets into the 100s I should get an alarm (just testing values). When the reported temperature is in these ranges, it does not appear to match.
How can I get the regex to match? Also, can I set these values in the OID Library somehow so I don't have to re-setup each of these settings in each environment or when someone deletes one?
Add comment