The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Server Info in Admin Control Panel Details »» | |||||||||||||||||||||||||
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 Show Your Support
|
Comments |
#32
|
||||
|
||||
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'])) { print_form_header('', ''); print_table_header('Memory Usage <span class="normal">exec(free -m)</span>'); exec('free -m', $mem); print_description_row('<pre>'.implode('<br />', $mem).'</pre>'); print_table_footer(); } if ($_REQUEST['show'] == 'freediskspace' || empty($_REQUEST['show'])) { print_form_header('', ''); print_table_header('Free Disk Space <span class="normal">exec(df -h)</span>'); exec('df -h', $df); print_description_row('<pre>'.implode('<br />', $df).'</pre>'); print_table_footer(); } |
#33
|
||||
|
||||
Thanks, I'll update the mod
great |
#34
|
||||
|
||||
Guess some screen prints might be nice too:
df -h Code:
Filesystem Size Used Avail Use% Mounted on /dev/hda6 2.0G 473M 1.4G 26% / /dev/hda1 99M 36M 59M 38% /boot /dev/hda2 9.7G 1.9G 7.4G 20% /usr /dev/hda3 7.7G 797M 6.6G 11% /var /dev/hda7 989M 17M 922M 2% /tmp /dev/hda8 52G 5.3G 44G 11% /home none 1000M 0 1000M 0% /dev/shm /dev/hdb1 46G 2.7G 41G 7% /home2 /dev/hdb3 26G 7.7G 17G 32% /backup Code:
total used free shared buffers cached Mem: 1999 1882 116 0 213 745 -/+ buffers/cache: 924 1075 Swap: 4000 0 4000 |
#35
|
||||
|
||||
Cool, just glad to help. I can't code for jack, but in some cases I'm useful
|
#36
|
||||
|
||||
Well, I'm not a Unix guru myself
Updated, made free be free -m and df be df -h |
#37
|
||||
|
||||
I always send an update when I update my mods. Sending an update sends an email to everyone that has the mod marked as Installed. So no need for a useless product xml just to show a version number.
|
#38
|
|||
|
|||
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! Anyway, I'm on board now. Nice improvements too, jw00dy. :up: |
#39
|
|||
|
|||
Thanks.
Also, frightening to see how high my server load is: Server Loads: 28.07 26.97 : 29.84 |
#40
|
||||
|
||||
Quote:
Here's info on server loads that may help you http://www.vbulletin.com/forum/showt...&postid=291831 |
#41
|
||||
|
||||
That's not just frightening, it's appalling, I honestly don't know how your forum is running - the response times from it must be poor/dire.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|