Hi there,

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 ?


Article Comments

Hi,

You can set the sensor into a warning state only after a query has failed. This has to be configured in the sensor settings in the Scanning Interval section. Here you can set that the sensor should display a Down status if x intervals have displayed a warning status.

Kind regards


Oct, 2019 - Permalink

Hi,

Mhmm.. seems like the HTTP Push Data Advanced isn't the right sensor. But I don't see any other sensor that would fit our requirements. Is there maybe another/better way to monitor a script ?


Oct, 2019 - Permalink

Hi,

The EXE/Script Advanced sensor could help you to monitor the desired information.
You'll find more information about this sensor here

Kind regards


Oct, 2019 - Permalink

As far as I understand the EXE/Script Advanced sensor, it can only gather data and not receive any. Or is there a possibility to use it as a passive sensor ?


Oct, 2019 - Permalink

Hi,

A workaround could be, if you write the result of the script into a file, which doesn't change the age of the file when anything goes wrong with the script, you could monitor this file with the File Sensor. In here you can define warning and error limits for the age of the file. When the last change of the file was 660 minutes ago show a warning state and when the last change of the was 1320 minutes ago show an error state.

Kind regards


Oct, 2019 - Permalink