![]() |
Server Info in Admin Control Panel
This is a script that shows a lot of server information inside the AdminCP.
- Shows server time with exec(date) - Shows uptime with exec(uptime) - Shows server load with file_get_contents("/proc/loadavg") - Shows memory usage with exec(free -m) - Shows free disk space with exec(df -h) - 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" Info on Server Loads |
Screenshot?
|
Installed and working............:)
|
Would appreciate for a screen shot.
|
Yep I'd love to see a screenshot, please. :)
|
here some screenshot
|
more screenshot
|
some more
|
last screenshot
this was Installed in dtv100.com and working good thanks |
Works great except I can not access memory information. This is nothing to do with this mod but instead locking of the server form displaying this info to shmucks like me.
|
Thanks Redspider :)
|
Quote:
So, in "server_info.php" I changed lines 58 through 63... FROM (Linux using 'free') if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) { print_form_header('', ''); print_table_header('Memory Usage <span class="normal">exec(free)</span>'); exec('free', $mem); print_description_row('<pre>'.implode('<br />', $mem).'</pre>'); print_table_footer(); TO (FreeBSD using 'vmstat') if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) { print_form_header('', ''); print_table_header('Memory Usage <span class="normal">exec(vmstat)</span>'); exec('vmstat', $mem); print_description_row('<pre>'.implode('<br />', $mem).'</pre>'); print_table_footer(); Works in a pinch to give the same kind of info. :) |
Is this secure or is there vulnrabilites with it?
|
Very slick. Can you add the output from plain old uptime as well?
/me clicks install |
Sure, whats the unix command for that?
|
Quote:
|
This is a really neat tool, lots of info all in one place.:D One question though, being BRAND NEW to all this I'm still learning the ropes of vB adminstration.
How do others know or track simple things like available disk space, or memory on their server? Is that just a (daily) manual process wherein you look at it, or are there automated tools to forewarn you of an impending disaster?(i.e. emailed alert to admin, etc) Does cPanel (or anything else) have those kind of features? Are there other MODs out there that admins typically use to keep an eye out about such things? Or does your HOST warn you when you come to close to the edge? Etc. Thanxx! |
/me installs
|
Could this mod work in windows 2003 sever? Thanks.
|
it works with vb3.6.4 and all types of server?
is there any way to show cpu uses stats ? |
Sorry wrong thread. Delte please.
|
Updated, added uptime
|
Quote:
|
Don't import the xml, upload it to includes/xml
|
Ah ha! No wonder it wouldn't work. Sorry-so-slow. Thanxx for the help, works fine when you follow the directions! ha, ha
As so clearly stated above: Installation - Upload "server_info.php" to your admincp - Upload "cpnav_serverinfo.xml" to your includes/xml - Reload your AdminCP, its under "Server Info" |
No problem :)
|
looking good!!!
|
Nothing works for 2k3 servers and IIS... only mysql info :(
|
Yes this mod is meant for Unix, sorry.
If anyone wants to use this as a base for a Win version be my guest. |
Installed.
Not sure why you need individual menu items when you have the ALL option... Nice mod... Will be looking forward to next version. Isn't there the ability to import as a product? Server Info will not show up as product now and therefore you cannot track versions installed. Thanks |
Great mod.
I made some modifications to mine so it would show the free and df information is easier to read formats. free -m show the memory in MB and not kb. df -h show the stats in MB, GB, etc. Both are much easier to read. And feel free to update the mod so it shows them this way, as I think most will prefer it this way. Lines 66 - 80 in server_info.php changed to this: Code:
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) { |
Thanks, I'll update the mod :)
great |
Guess some screen prints might be nice too:
df -h Code:
Filesystem Size Used Avail Use% Mounted on Code:
total used free shared buffers cached |
Quote:
|
Well, I'm not a Unix guru myself :)
Updated, made free be free -m and df be df -h |
Quote:
|
One question, for those of us not in-the-know (yet) what do each of the numbers mean?(i.e. Average for some timeperiod, Instantaneous, Peak, etc??)
Server Loads: average: 2.22, 2.10, 2.30 2.22 : 2.10 Also Thanxx for the tickler stating: Please click Mark as Installed if you use this modification >>>> Somehow I'd overlooked Clicking 'Installed' and it caught my attention this time. And after reading the statement just above, I understand WHY it's important to do so!:eek: Anyway, I'm on board now. :D Nice improvements too, jw00dy. :up: |
Thanks.
Also, frightening to see how high my server load is: Server Loads: 28.07 26.97 : 29.84 |
Quote:
Here's info on server loads that may help you http://www.vbulletin.com/forum/showt...&postid=291831 |
Quote:
|
All times are GMT. The time now is 01:29 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:
|