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

Is possible to make "or" dependencies for two sensors?

Votes:

0

We use a service from an external provider. There are two different server to access the service. The problem is now, only one server is reachble at any time. If one server is down the other is up and running (Both server have a diffrent IP-Address). Ich have a ping sensor for both server. But due the rule that only on server is active, one of the two sensor show me downtime. Is' it possible to make a dependencies for this two sensors, that if one of the server is pingable that the other sensor is paused? I see that I can make a dependencies that if is one sensore is down the other sensor will go to pausedd, but I need is the opposite.

dependencies opposite paused prtg

Created on Nov 6, 2013 9:53:21 AM



1 Reply

Votes:

0

This isn't possible to do with the dependencies at the moment. What you can try doing though is use HTTP Action Execute notifications with the state triggers to make this happen. What you would need to do is set up a State trigger to resume the other sensor first. Then when the sensor has been down for a slightly longer have it pause itself.

The other sensor that would then be up would have the same settings so that when it went down, it would resume the other sensor and again pause itself. I would make sure to give the sensor at least 5-10 seconds for each notification to be sent and also make sure that there aren't any other devices dependent on these or that these are dependent on otherwise the loop may break.

The two API calls you would need to use would be:

/api/pause.htm?id=objectid&pausemsg=yourmessage&action=0

/api/pause.htm?id=objectid&action=1

Created on Nov 6, 2013 2:50:25 PM by  Greg Campion [Paessler Support]

Last change on Nov 6, 2013 2:52:17 PM by  Greg Campion [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.