Personally, I would use an external script or c# executable to do this. ipMonitor could monitor for a "fail" condition, and then execute the script.
You can create an alert with multiple actions. Here are some links that will help you:
SMS Text (Provided you are using a GSM modem):
You will also need to adjust the Notification Control for the monitor:
https://support.ipmonitor.com/helps/ea6dab7111214f9ca4b1cd3112040c1e.aspx (See Notification Control Section)
Set "Accumulated Failures per Alert" to 1, and "Maximum Alerts to Send" to 999.
The page is not being maintained, but the information is still accurate.