Monitoring Pools

I have set up a pool (Pool1) with 5 Weblogic servers as members (WLS1, WLS2…WLS5). I want to monitor the WLS nodes using any type of monitor (HTTP more than likely), and I want to be notified via email when one fails. HOWEVER, when there is only 1 server left running, I want to have a text message sent to my cell phone.

Support suggested that I use iRules to accomplish this task, I am not sure how to set the iRule up to do this.

Any help would be greatly appreciated.