I have a TimeSpan PowerShell object and need to display it in a PRTG Custom Sensor Channel - do you have any examples that will format it whether the span contains days, hours and minutes or just minutes?


Article Comments

Output the timespan in seconds and use the unit seconds; PRTG will then automatically convert it to minutes, hours, days, etc :)


Apr, 2022 - Permalink