over
18 Nov 2001, 19:03
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Download The Attachment, which contains the file, required servstats.php and also a copy of these instructions :)
Edit the Following Vars To Suit Your Needs.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
you can find them on lines 6 and 7.
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 is only visible to licensed users, and only when logged into the forums.
---------------
Below that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Upload the edited file to /{vbb dir}/{forums dir}/{admin dir}/
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?op=AdvBlocksEdit&bid=15)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under that add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The above will only let admins able to click the link to the server health directly from the admin menu
on the Administration Sideblock, no others will be able to see it.
Open /{pathtovbportal}/admin.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Above gives you a link in your vbportal admin area
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
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Download The Attachment, which contains the file, required servstats.php and also a copy of these instructions :)
Edit the Following Vars To Suit Your Needs.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
you can find them on lines 6 and 7.
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 is only visible to licensed users, and only when logged into the forums.
---------------
Below that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Upload the edited file to /{vbb dir}/{forums dir}/{admin dir}/
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?op=AdvBlocksEdit&bid=15)
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under that add:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
The above will only let admins able to click the link to the server health directly from the admin menu
on the Administration Sideblock, no others will be able to see it.
Open /{pathtovbportal}/admin.php
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Under that add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Above gives you a link in your vbportal admin area
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