I'm trying to get an average number of milliseconds per request to a web service. I have a SNMP Counter32 value for RequestCount and TotalRequestTime that get updated by the application. If I could use two delta counter sensors and a factory to divide the values that would give me the number I want, why won't PRTG allow it?
Article Comments
Hello, is there any way around this problem ? i.e. is there any way to divide the results of two delta sensors ?
Mar, 2017 - Permalink
Hello fran1942, thank you for your KB-Post.
This is still not possible in PRTG, and due to the complexity there are no plans to change this behavior anytime soon. However, you could still create your custom solution to the problem. Please take a look at the following KB-Post:
You could use that "base code" but modify the script to your requirements. Perform the difference calculation in your code and then send only the result to PRTG, which will graph and display the readings and can be used for alerts.
Best Regards,
Luciano Lingnau [Paessler Support]
Mar, 2017 - Permalink
since the moments of data gathering are not exactly the same for both sensors you can not really use them.
Depending on the situation you can get usable values, but they could be absolutely unusable as well.
That is why this is not implemented in the factory sensors.
Nov, 2010 - Permalink