Log in

View Full Version : Calculating Server Load



tech_support
01-25-2007, 05:43 AM
How would It calculate server load and output it (0.0 through to 1.0)?

tech_support
01-27-2007, 04:11 AM
No one knows?

thetestingsite
01-27-2007, 04:25 AM
Are you on a Windows server or Linux server? If on a linux, check to see if you have a file (I believe it is in the /etc directory) called loadavg. If so, make a php script to parse that file and print out the text. This will be the server's load average. I have had to do this with a few of our Cobalt Servers because a few of them would overload at like 8 in the morning everyday for about 3 weeks straight.

Anyways, hope this helps.

tech_support
01-27-2007, 04:29 AM
No, it's a Windows server.

thetestingsite
01-27-2007, 04:43 AM
I seen a processer load script floating around the web. (I think I saw it on hotscripts). But I'm not sure how it would be done in Windows, sorry.

tech_support
01-28-2007, 04:08 AM
So nobody knows?

mburt
01-28-2007, 04:14 AM
http://technet.microsoft.com/en-us/library/ccec1c70-a3df-404a-93e0-b74077e3d013.aspx
Maybe, I haven't checked it out yet.

tech_support
01-28-2007, 04:15 AM
I think that's for Microsoft Exchange Server.

mburt
01-28-2007, 04:21 AM
Yeah, sorry I didn't help. I just googled it and found a resource.

tech_support
01-28-2007, 04:48 AM
Found one! :D

http://phpsysinfo.sourceforge.net/

thetestingsite
01-28-2007, 04:53 AM
Nice script. I might need to utilize that for some of our servers. BTW, nice avatar.