in reply to Checking Perl script on server
You could also use sar. If you want to look at the disks, you would use sar -d 5 100, different resources take different parameters, see man sar for more info.