I have a script that gets the status of services. Currently, sensor sets value of 0 (UP state) when service is running. How can I set the sensor to Down state if the service is stopped?


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.

Hello there,

You can define the various value for sensor state. Such as "0"=Ok(Up), "1"=Warning, "2"=Error(Down). You could also set a limit as an example, if the sensor receive the value 1 when the service is stopped so you can set a upper limit of 0,1. ? For more information, I would suggest you to refer to the following manual: https://www.paessler.com/manuals/prtg/custom_sensors


Regards,


Feb, 2021 - Permalink