What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

Powershell class for Custom Sensor Result



Hi all,

I've been writing a lot of custom scripts to be used with PRTG in the past years. Most of these were written in Powershell. A few months ago, I started playing with Python scripts in PRTG and I noticed there's a CustomSensorResult class available which makes outputting the correct JSON Format a piece of cake.

So I started to study that class and finally ended up in creating a similar class to be used in PowerShell scripts. It is still a work in progress, but the current version can already be used except for the limit (warning/error) options on channels.

More information can be found on https://itpro.peene.be/prtg-powershell-class-for-custom-sensor-results/

Feel free to use it. I'll be happy to hear your comments.

custom-sensor powershell prtg

Created on May 26, 2021 3:30:52 PM

1 Reply



Hi Mickey,

Thank you for sharing!

Kind regards

Felix Wiesneth - Team Technical Support

Created on May 26, 2021 8:14:24 PM by  Felix Wiesneth [Paessler Support]

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.