Monitor the status of a script
Modified on 2025-06-10 16:47:43 +0200
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.
Important: We no longer maintain this article. The information might be out of date.
We would like to monitor the status of a data import script with PRTG. What is the best solution here? I have two ideas but for both of them I am not sure if they doable.
Solution 1) At the end of the script we make a REST call to PRTG and set a sensor either to green or red.
Solution 2) The import script write at the end of the run into a file the status. PRTG is then reading this file an sets the sensor to red or green depending on the content of the file.
Or is there another prefered solution by PRTG?
Article Comments
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.
Hi there,
I would recommend to use solution 1) but that you send a HTTP query to a "HTTP Push Data Sensor" https://www.paessler.com/manuals/prtg/http_push_data_sensor
Jan, 2023 - Permalink