vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Server Load - On ForumHome (*nix only) (https://vborg.vbsupport.ru/showthread.php?t=116134)

Veer 11-25-2006 08:01 PM

will work for 3.6.0?

Silver_2000_)! 12-01-2006 12:57 PM

Sorta strange

Single processor server running at load of 1.2 ( which is HIGH ) and this hack shows it as 13 %

I guess its assuming a load of 10 is 100% ...

Its also visible to all users even though I used the Supermods and admins version

seems this mod works fine to limit acces though
https://vborg.vbsupport.ru/showpost....1&postcount=19

MrPHD 12-02-2006 12:21 PM

Installed and nice job.

Cybershaolin 12-03-2006 04:12 AM

Will this wok with 3.6.4 or could it be upgraded?

Veer 12-06-2006 11:10 AM

Installed on vb3.6.0

But its showing 0% all the time.

Cybershaolin 12-06-2006 11:52 AM

Then, it would be nice if this hack be upgraded to 3.6.X.

Cybershaolin 12-10-2006 07:47 PM

Anyone?

orban 12-17-2006 10:21 AM

$serverload_percent = min(100, round(exec('ps ax | grep -c apache') / 256 * 100));

What does this calculate? The number of Apache processes divided by 256?

lanc3lot 12-29-2006 01:57 PM

Can this be changed so it can be used with v3.6?

justachump 01-13-2007 01:53 AM

Quote:

Originally Posted by Pehchaan (Post 1133125)
Installed on vb3.6.0

But its showing 0% all the time.

I am on vb3.6.4 and i got zero all the time too,, and im on linux server

justachump 01-13-2007 03:21 PM

Quote:

Originally Posted by Cybershaolin (Post 1135919)
Anyone?

:confused:

SEYTAN_NL 01-14-2007 10:51 AM

Quote:

Originally Posted by Rickie3 (Post 982874)
i installed this yesterday then applied the update today,and its still reading zero on my board maybe it doesnt work for 3.5.0??

The same with 3.5.4. & 3.6.2

AMG021 01-22-2007 03:05 AM

Can someone please port this hack to 3.6? because i get 0% all the time. And im on linux server

Cybershaolin 02-13-2007 06:45 PM

OK mine was working but suddenly it now sticks at 29% with or without traffic. What could cause that?

Could that be anything with the file permissions (attributes) on the server or with a service not activated.

My ISP re-installed the control panel after a crash. He brought the forum back online before re-installing the control panel. It's not working since that time (well, it's jammed at 29% like I said).

fatal1980 03-04-2007 06:39 PM

I'm using VB 3.6.4

It shows 1% regardless if my server load is 0.01 or 15.0

Any ideas?

Cybershaolin 03-20-2007 01:29 AM

Just too bad this one is not supported anymore. Is there a similar mod? Not the ones I saw that shows some info differently but one with a colored bars like this...

benjaminbih 07-02-2007 07:49 PM

works graet on 3.6.7, thnx

Total666 07-02-2007 09:34 PM

Quote:

Originally Posted by benjaminbih (Post 1281474)
works graet on 3.6.7, thnx

So it is working on your 3.67 ??? Really ???? ..

Total666 08-05-2007 02:19 AM

Quote:

Originally Posted by Total666 (Post 1281537)
So it is working on your 3.67 ??? Really ???? ..

BUMP --- Anyone have this working on 3.68 ??

jshg46 08-19-2007 03:53 PM

on vbulletin 3.6.8 this is how i made it work. instead of putting serverload images in the images directory just ftp the folder called serverload directly to the root, works like a charm

so im other word you should have the folder serverload in your forum root not inside the folder images.

Cybershaolin 02-13-2008 11:50 PM

Yes I have it working for 3.6.8 here without havin to put the server load directory in the root...

But the problem is that the bar is always green no matter how the load is.

With a server load showing at 20, I tried changing the values to something smaller in order to check if the bar would turns yellow but nothing. Made quite a few refresh screens but nothing?

Anybody has a clue? Maybe the conditions are uncorrect?

This is what I tried:

Code:

global $vbulletin;
if($vbulletin->userinfo['usergroupid'] == '5' OR ($vbulletin->userinfo['usergroupid'] == '6' OR ($vbulletin->userinfo['usergroupid'] == '7' OR ($vbulletin->userinfo['usergroupid'] == '9' OR ($vbulletin->userinfo['usergroupid'] == '13'))))) {
$serverload_percent = min(100, round(exec('ps ax | grep -c apache') / 256 * 100));
$serverload_top = "<table border=0 width=402><tr><td align='left' height='0' width=402 style='border: #000000 1px solid; background-repeat: repeat-x'>";
if ($percent <= 30) $serverload_img = "loadbargreen.gif";
elseif ($serverload_percent <= 70) $serverload_img = "loadbaryellow.gif";
else $serverload_img = "loadbarred.gif";
$serverload_width = $serverload_percent * 4;
$serverload_bottom = "</td></tr></table>";
$search_text = '<!-- end logged-in users -->';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_serverload'),$vbulletin->templatecache['FORUMHOME']);
}



All times are GMT. The time now is 01:07 AM.

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.01251 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete