I always found getting the vars right with custom pollers to be something of a dark art. Best thing to do is to get the alert to just email yourself and put variables in to see which ones you need.
In terms of the alery, I think you need to re-order things. I *think* you need to move your 2 "Status" lines need to be at the same level as your IP address condition. You may also need to use "Numerical Status" rather than "Status".