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?