Were it sufficient to simply use ICMP to the next-hop to verify the static route, one could avoid using scripting and instead use the ping-protection feature found in 16.2.
Here is a link to the release notes.
It appears, however, that the SLA for each route is more complex, and that latency is used in addition to ICMP packet loss to determine that a static route is invalid. Is this true?
I can help with a script, but I need you to verify the exact conditions under which you need to determine that a static route is invalid.