i see a few month ago a simply script to check load on a server, only with one line, anyone remember or know how to do it?
i don't want a complete system for server loads, uptimes, etc, for that i have nagios, what i'm looking for it's to make a simple website to check all the servers loads and refresh it every 5 minutes for example, any idea?
something like :
check server1 and show load
check server2 and show load
check server3 and show load
check server4 and show load
(you need to be allowed to execute shell commands)
And of course RangerOfFire is right - you need to execude code on destination machine. There is no way to check server's load if this server doesn't provide such service (which can be very simple web-service provided with this one line of PHP code above.
This remote server would need to provide a service reporting its load (or just run one line of your PHP script which would act as such service) - then your code can chceck and report this remote server load.