good morning, I need to create a sensor factory once a week take the maximum value of the previous week and subtract this value to the current. I have a factory sensor which adds the value of drops of 4 interfaces. Once a week, i want this account to 0 to see what increases in a week. But the switches do not allow put these values reset to 0, therefore i pretend that the sensor is set to 0 once a week. The best solution I've found is this:
- 1:Agregacion trafico IN [Drops] ((channel (10479,0) + channel (10480,0) + channel (10481,0) + channel (10482,0)) -357).
Where 357 is the value of last week. There are a better way? Can the sensor itself calculate or get the most value of last week and subtract? Thanks.
Dear Ana
A sensor cannot perform comparisons relative to earlier historic data. The manual solution you use is the easiest solution.
As a more elaborate solution, you could write a custom sensor which uses the PRTG API to read the historic data of other sensors and automatically performs the necessary calculations. However, this puts some load on the PRTG core server, since API calls are not cheap performance-wise.
Jun, 2015 - Permalink