We've started to monitor our powershell - Scripts with the "HTTP Push Data Advanced" - Sensor. As soon as the specific script has finished and all integrated checks are fine, it will send a get request to the specific uri of the sensor. If somehow the script thinks something went wrong, it will not send the request to the sensor. In the settings of the sensor, the value "No incoming data" is set to "Switch to down after x minutes".
At the moment a sensor will go down, if the script has not send the request after x minutes. We now want to set the status first to warning (ex. after 660 minutes) before we set it to down and our notifications are triggered.
What is the best way to implement this logic ?