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.


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

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


Feb, 2018 - Permalink