vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Extended! Server Load Averages (https://vborg.vbsupport.ru/showthread.php?t=53498)

shovel 05-27-2003 10:00 PM

Extended! Server Load Averages
 
Here We Go Again! :cool:
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!

shovel 05-28-2003 03:55 PM

It's the averages above my cool bar feature. (Server Load Percentages hack)

SmEdD 05-28-2003 04:50 PM

Line 129 for me not 12

shovel 05-28-2003 05:07 PM

Not 12, 12X. Means, around 120. Lol. Sorry. I'll change it. :)

EDIT: Fixed :)

Dean C 05-28-2003 05:12 PM

You should have kept this in your old thread?

shovel 05-28-2003 05:15 PM

Nope, it's different. Plus, I plan on adding more about the daemon to this hack. Also, I'm getting rid of the old percentage hack. I don't like it. It doesn't make as much sense as this version. Thanks Dean. :)

*Requests Deletion of Percentage Hack*

WoodiE 05-29-2003 05:45 PM

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

shovel 05-30-2003 10:25 AM

This happens to me aswell, I can't explain it. Just refresh the page, that's my only solution. I'll mod the code so that it won't display that anymore aswell. :)

EDIT: FIXED, So Upgrade!

Erwin 05-30-2003 12:32 PM

I still don't understand the usefulness of this hack. :) To get the percentage, just take the server load eg. 0.5 and x 100 - 0.5 x 100 = 50%. What would be the point of your hack? :) Not wanting to offend, just clarifying its purpose...

shovel 05-30-2003 12:52 PM

Exactly, it turns them into a percent. It's a whole lot easier to read and I've also included the link you gave me earlier. I just relized the other day the use of 'Server Load Averages'. Now I want everyone to relize just how important they really are. Some people have been just bypassing them for years now not knowing what they do or stand for. Now, if a person looked into atleast the site I've included they could probably figure out why their server is so slow. :)

ImportPassion 06-02-2003 12:17 AM

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.

mlevenson 06-02-2003 12:40 AM

if you find out let me know as I have the same problem.

Preech 06-19-2003 09:25 AM

i get the same error ^^

Bison 06-19-2003 09:06 PM

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?

shovel 06-20-2003 01:21 PM

Nope. Any server can handle it.

Nixpeiler 06-26-2003 04:45 AM

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

msimplay 08-09-2003 07:29 PM

tru i got the same as u Nixpeller

Dodger 08-13-2003 01:49 PM

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?


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
  • Page Generation 0.01691 seconds
  • Memory Usage 1,766KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete