Need some help on some dependency

Hello

Basically i have something like this:

Server client :-----router lan/router wan----Me
I have a VPN with the client through which i query nsclient on the clients server

What i want (i can’t see a way to make a host dependent on a service)
How can i make something like this:
IF the public ip is Down (the wan) do not alert me on the vpn since it is pointless and alert me on the wan
If the wan is ok check the vpn

So basically how to add 2 addresses for host online check ???

can’t you create two hosts for the router? router public and router private… make them the check-host-alive dependant on a ping to the interfaces and you should have it, or did i miss something?