"Counters and Logs to Monitor" => http://support.microsoft.com/kb/300504
Save as CSV and read it() by PHP
[OR]
http://pecl.php.net/package/win32ps
[OR]
Use WMI:
Save as CSV and read it() by PHP
[OR]
http://pecl.php.net/package/win32ps
[OR]
Use WMI:
<?PHP
#error_reporting(1);
$wmi = new COM("WinMgmts:{impersonationLevel=impersonate}") ;
$cpus = $wmi->ExecQuery("SELECT LoadPercentage FROM Win32_Processor");
foreach ($cpus as $cpu) :
echo $cpu->LoadPercentage . '%';
endforeach;
?>
No comments:
Post a Comment