use [user@host ~]$ sar -p for Historical CPU usage but where shoud I type that?
That would require 'shell' access - which I don't expect any shared hosting provider allows for security reasons...
A dedicated server would allow this access.
Further down in the article, the author provides a script that can be invoked via cron to check resource usage and email you if there is an issue... I added to my '15 minute' cron task. Looks like it needs some adjustment for my config, but the output was:
grep: /etc/wwwacct.conf: No such file or directory
1 minute load avg: 23
Swap used: 2108 kB
Mem used: 8137468 kB
grep: /proc/net/dev: No such file or directory
grep: /proc/net/dev: No such file or directory
packets received (2 secs): 0
grep: /proc/net/dev: No such file or directory
grep: /proc/net/dev: No such file or directory
packets sent (2 secs): 0
./monitor.pl: line 111: bc: command not found
From looking at the code - the load, swap and mem appear correct... The packet data relies on the 'grep' commands that are failing... I would need to rework a bit...
But to execute - I placed the script in a file named 'monitor.pl' - changed the email address to my email - and invoked it via cron with this command included in my php cron script:
system( "cd /home/account/domain/subdomain/directory; ./monitor.pl;" );
(where the cd path is the complete file path to the directory containing the .pl file to be run...)
Should be able to get a view of the stats from your ISP without going through this in my opinion...
Greg