You can try RPM with event-option to do the failover. Check if below post helps
https://forums.juniper.net/t5/Ethernet-Switching/services-ip-monitoring-Feature-On-EX/td-p/274823
https://forums.juniper.net/t5/Ethernet-Switching/services-ip-monitoring-Feature-On-EX/td-p/274823