The Arcive of vBulletin Modifications Site. |
|
My Server Info in AdminCP Details »»
|
|||||||||||||||||||||||||
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" Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
ooooh
|
|
#3
|
|||
|
|||
|
O.K works fine. One question..
Quote:
|
|
#4
|
|||
|
|||
|
Are you running Linux?
Are you sure the 'loadavg' in the folder 'proc' exists? |
|
#5
|
||||
|
||||
|
If you don't have proc, replace in server_info.php:
PHP Code:
PHP Code:
![]() Edit: Yes that does work ![]() Satan |
|
#6
|
||||
|
||||
|
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"? |
|
#7
|
||||
|
||||
|
Quote:
![]() For server memory usage, try looking at the php function "memory_get_usage" ![]() Satan |
|
#8
|
|||
|
|||
|
Works smoothly
|
|
#9
|
||||
|
||||
|
Any way to make this work on Windows 2003??
|
|
#10
|
|||
|
|||
|
thanks jesus likes pie
|
![]() |
|
|