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

Monitoring Scripts with HTTP Push Data Advanced

Votes:

0

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 ?

http push script

Created on Oct 15, 2019 10:49:11 AM



5 Replies

Votes:

0

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

Created on Oct 15, 2019 1:22:45 PM by  Marijan Horsky [Paessler Support]



Votes:

0

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 ?

Created on Oct 17, 2019 5:00:29 AM



Votes:

0

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

Created on Oct 17, 2019 6:26:03 AM by  Marijan Horsky [Paessler Support]



Votes:

0

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 ?

Created on Oct 17, 2019 8:30:55 AM



Votes:

0

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

Created on Oct 17, 2019 10:57:46 AM by  Marijan Horsky [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.