![]() |
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
|
Quote:
Yes, I am running Fedora Any Ideas? |
Works fine and is very useful, thanks! :up:
|
Thanks.
|
umm yea
PHP Code:
Anybody who doesnt have permission to view the page will get that nice error tony was having. |
My site went down last night due to the var dir getting filled up with logs, apparently. I was told by the Host that this hack could cause that. I want to check and see if anyone else has run into this before I remove anything.
The strange thing is that I have only run this once since moving to the new serever and it was yesterday, a little while before I got the "too many connections" error. Anyone have any ideas on this? |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Just bumping to see if anyone has found out about that server load problem yet! This hack would be wonderfully useful! :D
|
Installed on 3.5.2 and all is good. Thanks
|
Fatal error: Call to undefined function rpm_print_stop_back() in /home/mygsmbd/public_html/admincp/server_info.php on line 17
whats problem |
I still use this on vb 4 with no problems.
|
All times are GMT. The time now is 05:45 AM. |
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:
|