![]() |
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 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:
// ************************************************* Code:
// Server Stats 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 |
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 :)
|
Gotta give this a try. :)
|
Quote:
|
Quote:
updated the instuctions and attachment soz for that :) |
I will try it out tonight or tommrow
|
Code:
Parse error: parse error in /var/www/html/forums/admin/servstats.php on line 24 |
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 Code:
// Server Stats |
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. |
Great, I'll be waiting. :)
|
fixing a couple of issues with the disc space addition, not forgotten to update, doesnt work properly yet.
|
after getting many many parse errors, i got it working....here is the new file:
|
you may want to add the "httpd" processes cpu utilization.
|
This hack worked well for more than a month. Now, suddendly, it stopped without changing anything on my server or on servstats.php ????
Still using vb 2.2.1 ... Actually I get - now, for example, an html page containing only: Quote:
|
Uhmmm. Seems very good.... I'll install it when I get a *nix box for the board.
|
Quote:
I tried reinstalling it again and again, but !! :stupid: |
Quote:
|
Infact I'm using the bla.txt version, as the Over's original one always gave me parse errors...
:confused: |
Nobody's here ???
|
All times are GMT. The time now is 04:46 PM. |
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:
|