Hi,
Within the Comware based switches, you have the option to use the NQA feature to configure this. ArubaOS switches don't have a tracking feature like this. Normally I always configure this as follows:
In most situations, you need to talk to the firewall. The firewall supports OSPF routing. If you configure OSPF peering between ArubaOS switch and firewall you can then inject default route in OSPF. The firewall can track multiple internet destinations and remove default route announcement in OSPF when a link will be in certain status. You can even play with injecting cost on multiple firewalls to route all traffic via primary or something.
Let me know if you find this useful.
Regards, Dobias