Monitor resources

Hi,

I am a newbi, how can I setup a script or program to monitor if a user tried to use too many of the server resources?

Also, is there a way to monitor top so if it gets to high, I can send an email.

Thanks so much for your help!!

 

 

 

 

Top