How to get server cpu, memory, network usage from SQL Server
If you are running SQL Server 2008 and up, then you can use Performance Data Collector on SQL Server. This will get you all the metrics (and even more) that you need.

Below is from my TEST server :



If you want for webserver, then your best bet is to use Powershell. Even you can generate nice reports with charts out of your collection.