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.


Article Comments

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


Nov, 2013 - Permalink