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

Setting sensor status for EXE/Script Advanced Sensor



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?

custom-sensor exe-script-advanced-sensor exe-script-sensor

Created on Jan 29, 2021 10:03:44 PM

1 Reply



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


Created on Feb 4, 2021 6:46:13 AM by  Himanshu Bhatt [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.