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

Custom sensor return error



I have written a custom sensor and need to be able to return error. I have tried negative values and also putting the work error in the message, neither works.

custom-script-exe custom-sensor prtg

Created on Feb 2, 2018 1:34:52 AM

1 Reply



If you're using PowerShell or C#, the sensor status is dictated by the application's exit code:

  • 0 - Up
  • 1 - Warning
  • 2 - Error / Down In case you're using SSH Script Sensors, the first number depicts the status: <exit code>:<numeric value>:<message>

Kind regards,
Stephan Linke, Tech Support Team

Created on Feb 2, 2018 12:06:26 PM by  Stephan Linke [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.