The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Tested on various *nix servers
Description, shows you some important details of your server, the current time, uptime, amount of users that are telneted/ssh'd into your box, the load average, number of proecesses and some information about them, memory usuage and also the swap file usage. ie displays "top" information. Anything above a load average of more than 5 you should try to find out whats taking up the resources. above 10 your server will be running slow as hell. Code:
Example 4:32pm up 10 days, 20:34, 2 users, load average: 0.12, 0.15, 0.35 154 processes: 151 sleeping, 1 running, 2 zombie, 0 stopped Mem: 1545952K av, 1428608K used, 117344K free, 0K shrd, 22372K buff Swap: 1052216K av, 0K used, 1052216K free 876512K cached Sun Nov 18 16:32:16 GMT 2001 Edit the Following Vars To Suit Your Needs. Code:
$mysqladmin and $mysqllogin Upload to {vbportalpath}/{forums dir}/{admin dir} Edit the index.php in your main forum admin directory as follows (eg /{path to vbportal}/{forum path}/{vbb admin path}/index.php) Find code Code:
// ************************************************* makenavoption("Add","announcement.php?action=add","|"); makenavoption("Modify","announcement.php?action=modify"); makenavselect("Announcements"); // *** Code:
// Server Stats makenavoption("Server Information","servstats.php","|"); makenavselect("Server Health"); // Server Stats End The above will give you a sub menu in your vbb's main admin panel. (all done if just using vbb 2.2.x) Goto your portal admin area (eg http://127.0.0.1/vbportal/admin.php Choose side blocks (eg http://127.0.0.1/vbportal/admin.php?op=AdvBlocksAdmin) Edit the Administration Block (eg http://127.0.0.1/vbportal/admin.php?...cksEdit&bid=15) Find: Code:
<strong><big>?</big></strong> <a href="/forums/admin/index.php">VB Admin</a><br> Code:
<strong><big>?</big></strong> <a href="/forums/admin/servstats.php">Server Health</a><br> on the Administration Sideblock, no others will be able to see it. Open /{pathtovbportal}/admin.php Find: Code:
echo "<center><font size=\"4\"><b><a href=\"admin.php\">"._ADMINMENU."</a></b>"; Code:
echo "<center><font size=\"4\"><b><a href=\"/forums/admin/servstats.php\">Server Health</a></b>"; All done If yo have a different forums or vbb admin path please change the directories appropriately for the above instructions. Sorry if theirs better ways of doing this, but im new at trying, and trying is what counts? Hope you find it useful. You can also change the name of servstats.php to what you desire, if you do please remember to change all occurances of servstats.php in all occurances in these intructions. For support check www.phpportals.com Show Your Support
|
Comments |
#2
|
|||
|
|||
i'll add hd space, used, left to it, i'll try also to make it so that you can fill in the space allocated so it calc's the value from that at some point in future
|
#3
|
|||
|
|||
Gotta give this a try.
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Quote:
updated the instuctions and attachment soz for that |
#6
|
||||
|
||||
I will try it out tonight or tommrow
|
#7
|
|||
|
|||
Code:
Parse error: parse error in /var/www/html/forums/admin/servstats.php on line 24 |
#8
|
|||
|
|||
OK, got it now... you should check the php file in the zip file, it seems to be pretty messed up... Many things are in the same line... Which doesn't really matter until it hits this line:
PHP Code:
PHP Code:
PHP Code:
Code:
// Server Stats makenavoption("Server Information","servstats.php","|"); makenavselect("Server Health"); // Server Stats End Code:
// Server Stats makenavoption("Server Information","servstats.php"); makenavselect("Server Health"); // Server Stats End |
#9
|
|||
|
|||
i prolly uploaded my old file, i'll correct that when im back home
adding the menu under vbb's own stats is prolly a better idea, didn't think of that thanks, got a new version to upload neway which also states space left (option to input drive space allocated) and the space used in that directory. |
#10
|
|||
|
|||
Great, I'll be waiting.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|