To complete this recipe, you'll need access to a single JUNOS router that supports Real-time Performance Monitoring (RPM) probes, and a host on a directly connected network who can act as our next-hop.
We'll use a logical topology such as this:
We'll configure static routing from the JUNOS device to the 10.255.255.220/32 host address on the BSD box on the understanding that it is running some sort of service of interest, such as a web server.
We're then going to configure an RPM probe on the JUNOS device to monitor the liveness of the next-hop on the BSD box. This is all without the BSD ...