What is the formula for setting a factory sensor to down state using the greater than > symbol?
I have a channel in the factory sensor that counts the number of missing devices based on a number of expected devices and the number of actual connected/online devices.
I want the factory sensor to go in a down state when the channel has a value greater than 0. What is the formula I need to achieve this?
Article Comments
Hello,
I already had the sensor factory working, but I was missing a formula to bring it to a down state when a specific number of devices is missing. I came up with the following:
- 1:If channel Missing devices is greater than 0, set the factory sensor to down state. channel(0011,3) > 0 status(0011)
Will this bring the sensor in a down state if the channel with ID #3 is higher than 0?
Mar, 2018 - Permalink
No, so the channel will let us know if it's a 0 or not. Then you'll set a threshold on that channel to when it's greater than 0, it puts the channel into a down state. Does this make sense?
Mar, 2018 - Permalink
Hello Benjamin,
That does make more sense. I have set the threshold as you described and it is working.
Mar, 2018 - Permalink
If you check out the manual page, there is a section on how to do formulas with comparisons.
PRTG Manual: Sensor Factory Sensor
DEFINE SENSOR CHANNELS—FORMULA CALCULATIONS
Within a formula, the following elements are allowed to perform calculations with the values that are returned by one or more functions.
Mar, 2018 - Permalink