Script to check status of parent proxy server, remove if dow

Hi

Im setting up a parent proxy server in the web proxy service of the Mikrotik which works well , but its also introduced a single point of failure (until I can afford to place another server in colo).

Im thinking it would be easy to disable the parent proxy via script if it was not accepting connections (ie, its off/service crashed etc) buy Im not sure the best way to check for ‘up’. Is there a way to knock on a specific port and get the results so I can run a schedule to remove the parent.?

Any ideas much appreciated.

Greg made a smart solution for a customer. He shared it on his blog.

http://gregsowell.com/?p=3329

Maybe that could help you out.

Perfect! Many thanks