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

Can I change the polarity of the sensor dependency?

Votes:

0

The sensor dependency setting is great if you want to pause sensors based on another sensor going down. However, I want to do it the other way around!

I am using an HTTP sensor to check the status of a web server and if it goes down I want to run an SSH Script sensor to restart the server. Is there any way of using a dependency to do this?

dependency prtg12 sensor

Created on Oct 20, 2012 9:34:23 AM



2 Replies

Votes:

0

Hi,
I'm afraid this is not possible using dependencies. But you may use the PRTG API and a State Trigger firing a HTTP Notification when the sensor goes down.
Just pause the SSH script sensor and create a HTTP notification which does a API call to un-pause and one to pause the sensor. This notification then can be used with a state trigger for the HTTP Sensor which un-pauses the SSH script sensor when the sensor goes to down state and which then pauses the sensor again when the HTTP sensor comes up again ("When Condition clears").
If necessary a third HTTP notification might be created which triggers a scan of the SSH script sensor.
Best regards

Created on Oct 22, 2012 7:42:57 AM by  Konstantin Wolff [Paessler Support]



Votes:

0

Thank you! This works perfectly and now means I can automate what has become a laborious manual process on 30 different servers.

Created on Oct 22, 2012 10:28:14 AM




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.