Eddy,
let me first check with you if you really need to check cpu and memory.
Usually when a server is overloaded, it will respond slowly to new connections. So the number of active connections will go down slowly.
With this in mind, you can use the loadbalancing algorithm leastloaded.
The CSM will select the server with the minimum number of active connections. Thus selecting the server with best performance normally.
There is very few examples where the cpu/memory is needed.
If you really need this information, you need to create a TCL script that will run on the CSM and will poll the server for these values.
This is not straightforward.
Regards,
Gilles.