I want to build a sensor that contrast the previous day data,
How can I build it?
Can I build a sensor that include time function?
Modified on 2025-06-10 12:39:37 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hello there, thank you for your KB-Post.
You would have to leave a custom sensor (with a custom script) running in parallel, and comparing the last sensor value of the "desired" sensor with it's closest reading of "yesterday". I'm afraid I don't have any examples. But you can find further details about the API in the PRTG Manual: Custom Sensors.
You can use Invoke-WebRequest or Invoke-RestMethod in Powershell to interact with PRTG.
Best Regards,
Luciano Lingnau [Paessler Support]
Feb, 2017 - Permalink