Start here and get this working.
Then create a rule something like this.
of course change the IP address to your IP address. I am assuming you are familiar with RM, right? I also use the 15 minute average memory value in Hub Info to compare to. I let my hubs to get down to 90.0 but others use higher numbers.