Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 11-20-2001, 06:14 PM
over over is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fixing a couple of issues with the disc space addition, not forgotten to update, doesnt work properly yet.
Reply With Quote
  #13  
Old 11-26-2001, 12:00 AM
Cruz Cruz is offline
 
Join Date: Oct 2001
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after getting many many parse errors, i got it working....here is the new file:
Reply With Quote
  #14  
Old 12-08-2001, 10:43 PM
exodus's Avatar
exodus exodus is offline
 
Join Date: Nov 2001
Location: Providence, RI USA
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you may want to add the "httpd" processes cpu utilization.
Reply With Quote
  #15  
Old 02-02-2002, 09:39 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
<body><pre>

Sat Feb 2 18:40:22 EST 2002

</pre></body></html>
Bah ?!?
Reply With Quote
  #16  
Old 02-07-2002, 03:37 AM
haas haas is offline
 
Join Date: Jan 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhmmm. Seems very good.... I'll install it when I get a *nix box for the board.
Reply With Quote
  #17  
Old 02-09-2002, 08:27 AM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
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 ...

Any idea ???
I tried reinstalling it again and again, but !! :stupid:
Reply With Quote
  #18  
Old 02-11-2002, 04:13 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jawelin
Actually I get - now, for example, an html page containing only
I got a similar error when I replaced the contents of over's servstats.php with cruz's bla.txt because I was also getting parse errors. I've gone back to over's version but am getting the parse errors once more.
Reply With Quote
  #19  
Old 02-11-2002, 01:40 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Infact I'm using the bla.txt version, as the Over's original one always gave me parse errors...
Reply With Quote
  #20  
Old 02-19-2002, 09:28 PM
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Posts: 557
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nobody's here ???
Reply With Quote
Reply


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 11:34 PM.


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.04422 seconds
  • Memory Usage 2,297KB
  • Queries Executed 24 (?)
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
  • (8)bbcode_code
  • (3)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