Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Details »»

Version: , by over over is offline
Developer Last Online: Jan 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-17-2001 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

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
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:
$mysqladmin and $mysqllogin
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:
// *************************************************
makenavoption("Add","announcement.php?action=add","|");
makenavoption("Modify","announcement.php?action=modify");
makenavselect("Announcements");
// ***
Below that add

Code:
// Server Stats
makenavoption("Server Information","servstats.php","|");
makenavselect("Server Health");
// Server Stats End
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?...cksEdit&bid=15)

Find:
Code:
<strong><big>?</big></strong> <a href="/forums/admin/index.php">VB Admin</a><br>
Under that add:
Code:
<strong><big>?</big></strong> <a href="/forums/admin/servstats.php">Server Health</a><br>
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:
echo "<center><font size=\"4\"><b><a href=\"admin.php\">"._ADMINMENU."</a></b>";
Under that add

Code:
echo "<center><font size=\"4\"><b><a href=\"/forums/admin/servstats.php\">Server Health</a></b>";
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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-18-2001, 06:11 PM
over over is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-18-2001, 06:30 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gotta give this a try.
Reply With Quote
  #4  
Old 11-18-2001, 06:44 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Upload to {vbportalpath}/{forums dir}/{admin dir}
Uhm, there already is a stats.php there... I don't think I'm supposed to replace that?
Reply With Quote
  #5  
Old 11-18-2001, 07:01 PM
over over is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by LDT

Uhm, there already is a stats.php there... I don't think I'm supposed to replace that?
nope, call it something else.


updated the instuctions and attachment soz for that
Reply With Quote
  #6  
Old 11-18-2001, 10:28 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try it out tonight or tommrow
Reply With Quote
  #7  
Old 11-19-2001, 02:07 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Parse error: parse error in /var/www/html/forums/admin/servstats.php on line 24
Any ideas?
Reply With Quote
  #8  
Old 11-19-2001, 02:16 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
{  // display all except CPU details      $buffer = rtrim (fgets ($fp, 1024));      if (substr ($buffer, 0, 11) != "CPU states:")        echo "$buffer\n";    }  } 
I also think it's better to add
PHP Code:
makenavoption("Server Status","servstats.php?action=choose","<br>"); 
right before
PHP Code:
makenavoption("Statistics","stats.php?action=index","<br>"); 
If you want to leave i that way however you should remove ,"|" from
Code:
// Server Stats
makenavoption("Server Information","servstats.php","|");
makenavselect("Server Health");
// Server Stats End
so that it looks like this
Code:
// Server Stats
makenavoption("Server Information","servstats.php");
makenavselect("Server Health");
// Server Stats End
as it isn't needed.
Reply With Quote
  #9  
Old 11-19-2001, 04:37 PM
over over is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 11-19-2001, 05:19 PM
LDT LDT is offline
 
Join Date: Nov 2001
Location: Austria, Vienna
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, I'll be waiting.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04691 seconds
  • Memory Usage 2,302KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete