![]() |
My Server Info in AdminCP
This is a script that I used outside the admincp, that shows some server info.
- Shows server time with exec(date) - Shows server load with file_get_contents("/proc/loadavg") (same as microstats plugin) - Shows memory usage with exec(free) - Shows free disk space with exec(df) - phpinfo() link - Shows MySQL Stats with mysql_stat() - Shows MySQL Status with "SHOW STATUS" query - Shows MySQL Vars with "SHOW VARIABLES" query Its superadmin only. Installation - Upload "server_info.php" to your admincp - Upload "cpnav_serverinfo.xml" to your includes/xml - Reload your AdminCP, its under "Server Info" |
ooooh
|
O.K works fine. One question..
Quote:
|
Are you running Linux?
Are you sure the 'loadavg' in the folder 'proc' exists? |
If you don't have proc, replace in server_info.php:
PHP Code:
PHP Code:
Edit: Yes that does work :) Satan |
thanks satan can I use that in an update?
and does anyone know the best way to get "server memory usage" and "disk space used/free"? |
Quote:
For server memory usage, try looking at the php function "memory_get_usage" :) Satan |
Works smoothly :)
|
Any way to make this work on Windows 2003??
|
thanks jesus likes pie
|
All times are GMT. The time now is 10:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|