Hello,
I'm successfully using PRTG reports to export the UP and DOWN statistics of certain sensors divided by working days and weekends, but I can't see the pause status.
To overcome this lack I am exporting via API the "pause" and "resume" states from the PRTG logs, and I would like to know if a schedule can be applied directly to the API like I'm already doing with built-in reports (one schedule for working days and one for week ends), or if a "day" column can be added to easily see if the time stamp is related to a monday or a sunday (now I am using "datetime" column)
Alternatively, is there a way to receive a notification when a sensor exits the pause state? This feature would solve all my problems since my goal is to have a sort of report of the duration of the maintenances.
thank you, Enrico
If you're happy to generate this information on demand using PowerShell or as part of a script configured to run as part of a Scheduled Task you can list the pause/resume events of objects fairly easily using the Get-ObjectLog cmdlet of PrtgAPI
If you then group by Id using the Group-Object cmdlet you can calculate the difference between each Pause and its successive resume (if applicable) by subtracting their respective DateTime values
Jul, 2019 - Permalink