[SOLVED] Server Performance Monitor

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fangorn
Forum Commoner
Posts: 41
Joined: Fri May 21, 2004 9:04 am

Server Performance Monitor

Post by fangorn »

I've been asked to write a PHP script that will gather server health statistics such as CPU Utilization, total memory and available memory. I wrote a nice script on my XP machine which utilized command line arguments to the Windows Performance Monitor for CPU Utilization and MSInfo32 for memory information. This works quite well. It was after that that I've found out that the customer is using a Windows 2000 Server - which is before command line arguments to PerfMon were added. I also looked at pear.php.net, but didn't see any server health statictics modules. Has anyone written such a script? Which programs did you use to generate this information?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

fangorn
Forum Commoner
Posts: 41
Joined: Fri May 21, 2004 9:04 am

Post by fangorn »

That would be awesome if it worked for Windows!!! Sorry, I don't think I listed my OS.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Yeah you mentioned "XP" and "Windows" a couple times. :wink:

Anyway, WinSysInfo is what you need.

http://www.google.ca/search?hl=en&ie=UT ... load&meta=
fangorn
Forum Commoner
Posts: 41
Joined: Fri May 21, 2004 9:04 am

Post by fangorn »

Sami, that sounds exactly like what I need. However, every page I went to to try to download it pointed to a web site that wasn't found. Very frustrating. Do you have any comparable suggestions?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

could write your own exe...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

on windows, i always used moo.dll for my sysinfo in mirc scripts ;)
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

fangorn wrote:Sami, that sounds exactly like what I need. However, every page I went to to try to download it pointed to a web site that wasn't found. Very frustrating. Do you have any comparable suggestions?
http://prdownloads.sourceforge.net/phps ... z?download
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

LiLpunkSkateR wrote:
fangorn wrote:Sami, that sounds exactly like what I need. However, every page I went to to try to download it pointed to a web site that wasn't found. Very frustrating. Do you have any comparable suggestions?
http://prdownloads.sourceforge.net/phps ... z?download
PHPSysInfo and WinSysInfo are two seperate programs...he needs the Win32 version with EXE's.


Well I will zip it up from my localhost and upload it: here you go

Enjoy.
Post Reply