Check connectivity between two hosts

I have two hosts, one of which is having newrelic installed (source) and destination host does not have any newrelic agent.
I want to be alerted when the connection is lost between them.
How this can be achieved? Is there any out of the box solution available for the given problem.
I also checked the URL mentioned below for answers but it does not talk about connectivity between two servers.

Shubham Nyaik

Hi, @Shubham_Nyaik: I think the Flex integration is the way to go here. From the host with the Infrastructure agent installed, have the Flex integration execute a ping command to the other host, and send the result to New Relic.