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

Reply
 
Thread Tools
Extended! Server Load Averages Details »»
Extended! Server Load Averages
Version: 1.00, by shovel shovel is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-27-2003 Last Update: Never Installs: 9
 
No support by the author.

Here We Go Again!
Extended! Server Load Averages
Man, I Love This Feature!

Hey Everyone!
This is another creation from the "shovel factory/powerhouse". Lol. Actually, it's just another modification of the heavily unorganized, vBulletin AdminCP code. There, I said it! Anyways, this hack allows for a mighty cool feature.

1) You can check your current, 5 minute, and 10 minute server load with much more ease.

B. It just spices up the old 'Useful Admin Stuff' menu.

3) Well....you get the picture. (screen in post below)

Well, what it does is turns your current averages in to a much more useful percentage by multiplying the decimal by 100. Then I added a cool link to a place that explains these average triads and spans that tell you how long ago the values were taken. (when you hold your cursor over the percentages) I think it's pretty awesome, so you might think that too. Give it a look and try it out. Thanks.

With Lottsa Crap,
shovel

P.S.
If you have previously downloaded this hack, 12X means around line 120. It has now been changed. Sorry for any problems. Also, I've changed the class for the table-row back to secondalt. I had it set to firstalt to fit my own setup.

Latest Update: Upgrade coding for no more '0%, %, %' problems!

Show Your Support

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

Comments
  #12  
Old 06-02-2003, 12:17 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
05-29-03 at 02:45 PM WoodiE said this in Post #7
I've installed this and this is what my server load shows:

0%, %, % 21 users online (14 members & 7 guests).


How can it be 0%, nothing% nothing%?


-WoodiE
I still get this. Oh well. no biggie.
Reply With Quote
  #13  
Old 06-02-2003, 12:40 AM
mlevenson mlevenson is offline
 
Join Date: Apr 2003
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you find out let me know as I have the same problem.
Reply With Quote
  #14  
Old 06-19-2003, 09:25 AM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get the same error ^^
Reply With Quote
  #15  
Old 06-19-2003, 09:06 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this is one of those hacks that can be used only on dedicated servers which allows you to retrieve information from the root directory folders?
Reply With Quote
  #16  
Old 06-20-2003, 01:21 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope. Any server can handle it.
Reply With Quote
  #17  
Old 06-26-2003, 04:45 AM
Nixpeiler's Avatar
Nixpeiler Nixpeiler is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perhaps it is version a problem ?
on version 2.3.0 is this line
PHP Code:
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$stats,$regs);
echo 
"<tr class=\"secondalt\"><td><a href=\"http://nscp.upenn.edu/aix4.3html/cmds/aixcmds4/ruptime.htm\" target=\"_blank\">Server Load Averages</a></td><td><b><span title=\"CPU Usage 1 Minute Ago At $regs[1]\">$regA1%</span>, <span title=\"CPU Usage 5 Minute Ago At $regs[2]\">$regA2%</span>, <span title=\"CPU Usage 15 Minute Ago At $regs[3]\">$regA3%</span></b> $onlineusers</td></tr>\n";
}
?> 
does not existent

in version 2.3.0 is it this
PHP Code:
    preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$stats,$regs);
    echo 
"<tr class=\"secondalt\"><td>Server Load Averages</td><td><b>$regs[1]$regs[2]$regs[3]</b> $onlineusers</td></tr>\n";
}
?> 
and if I exchange it i have resembles error


mfg
Reply With Quote
  #18  
Old 08-09-2003, 07:29 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tru i got the same as u Nixpeller
Reply With Quote
  #19  
Old 08-13-2003, 01:49 PM
Dodger Dodger is offline
 
Join Date: Jun 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nixpeiler
Yes, may be a version problem. In txt file is written:
PHP Code:
Find Around Line120
------------------------------

preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$stats,$regs);
echo 
"<tr class=\"secondalt\"><td><a href=\"http://nscp.upenn.edu/aix4.3html/cmds/aixcmds4/ruptime.htm\" target=\"_blank\">Server Load Averages</a></td><td><b><span title=\"CPU Usage 1 Minute Ago At $regs[1]\">$regA1%</span>, <span title=\"CPU Usage 5 Minute Ago At $regs[2]\">$regA2%</span>, <span title=\"CPU Usage 15 Minute Ago At $regs[3]\">$regA3%</span></b> $onlineusers</td></tr>\n";
}
?> 
but in ver. 2.3.0 it's only:
PHP Code:
    preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$stats,$regs);
    echo 
"<tr class=\"secondalt\"><td>Server Load Averages</td><td><b>$regs[1]$regs[2]$regs[3]</b> $onlineusers</td></tr>\n";
}
?> 
Can one find the sollution to this problem?
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 09:23 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
  • Page Generation 0.18312 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (1)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
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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