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)

Farjad 05-20-2006 10:15 PM

Quote:

Originally Posted by Ghanem
Hi,

Thank you for the nice hack
its working fine for me, but does not lool good even with the original style..
Have a look at the attachment plz..

PM me your site url ill take a look...

Ghanem 05-20-2006 10:29 PM

Thank you for your fast reply
Click my name then choose visit Ghanem..
I have changed it from left to right and added align=middle only
With out it, it will look like the attachment

Farjad 05-20-2006 11:45 PM

Quote:

Originally Posted by Ghanem
Thank you for your fast reply
Click my name then choose visit Ghanem..
I have changed it from left to right and added align=middle only
With out it, it will look like the attachment

well, the prob is I am assuming you installed Admin only mod , so I do not know, lol and also your language that you are using is left to right so i guess thats the reason itsnot right.

Ghanem 05-21-2006 12:14 AM

..
The first screen shot was before I install the admin and super
The second was after, in addition, its with the original style
I wish thats the reason cos in that case it would be solved, but its not..
The following link is using the English language using the original style, still does not look correct..
http://www.la7odood.com/vb/index.php...d=1&styleid=10

Regards

scottct1 05-21-2006 12:47 AM

I installed this but not sure if its accurate, I am running a Dual CPU Dual Core system (It looks like I have 4 CPU's in my server), and my server load is only 0.59 and this mod is reporting that my server load is 30%.

Is this accurate?

Guest210212002 05-21-2006 02:47 AM

/me clicks install

Dual CPU VPS system, 40 people online, and my server load says 1%. Seems way low though.

scottct1 05-21-2006 02:54 AM

I have 1570 people online, in top my server load is .059 and it says my server load is 25%. Again I have a server with 4 CPU's, so I dont think this is measuring correctly in a multi processor enviroment.

Rickie3 05-21-2006 03:22 AM

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??

Farjad 05-21-2006 04:13 AM

Quote:

Originally Posted by Rickie3
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??

Are you using Windows or Linux ?

Rickie3 05-21-2006 04:25 AM

Quote:

Originally Posted by Farjad
Are you using Windows or Linux ?

linux

FreshFroot 05-21-2006 04:29 AM

same here I get a error at the top saying something about the index.php.....

Total666 05-21-2006 04:42 AM

I clicked install , where do I upload the images too ?? This looks great , thanks , I imported the mod for admins / super mods - I logged back in as a reg user , it is still visable ... Help .. .. Total

A_N_K_A_R_A 05-21-2006 06:55 AM

allusers nice thanks

PabloAM 05-21-2006 02:22 PM

ONE ERROR!!! :(

Warning: exec() has been disabled for security reasons in /foro.php(471) : eval()'d code on line 505

helpme please!

Delphiprogrammi 05-21-2006 02:43 PM

Quote:

Originally Posted by PabloAM
ONE ERROR!!! :(

Warning: exec() has been disabled for security reasons in /foro.php(471) : eval()'d code on line 505

helpme please!

Your host has disabled the exec(); functions nothing todo about that ....

Stop 05-21-2006 03:14 PM

Why not Windows ?

Delphiprogrammi 05-21-2006 04:19 PM

Quote:

Originally Posted by Stop
Why not Windows ?

because ps is a unix function windows doesn't know it

Quote:

ps ax | grep -c apache
who uses a windows server to host there sites anyway only crazy people do

Stop 05-21-2006 06:16 PM

so the server should be UNIX to get this work, not my computer, am I right ?

Total666 05-21-2006 06:26 PM

Quote:

Originally Posted by Stop
so the server should be UNIX to get this work, not my computer, am I right ?


Yes , the server , not your computer ...

Stop 05-21-2006 08:04 PM

Quote:

Originally Posted by Rickie3
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 here then but mine is 3.5.4.

SpaceStar 05-21-2006 09:39 PM

Excellent - installed

Rickie3 05-21-2006 09:49 PM

mine is still stuck on 0 no change at all since install

utw-Mephisto 05-21-2006 10:13 PM

I would install it when I also can move it to the footer ... I would not mind template edits, but since this information is hardly needed on daily basis it would be better not to have it that obvious .. just my .02 cent

Mr Chad 05-22-2006 04:38 AM

worked fine :)

titodj 05-22-2006 07:17 AM

Nice.. Thanks...

SkyCatcher 05-22-2006 04:51 PM

It doesn't work on my forum :(

It always stays at 0.

I ran "ps ax | grep -c apache" and it said 14 and when I checked the forum it was at 0 again so somehow it's not getting results

jwocky 05-23-2006 01:56 AM

Does this work on FreeBSD ? I love the idea and look of this hack, but it stays at either 0% or 1% on my forum, so i'm assuming it doenst work for freebsd ?

firstrebel 05-23-2006 07:44 AM

Very useful, saves loggin in with SSH all the time. *clicks install*

Bob

SkyCatcher 05-23-2006 08:20 AM

Quote:

Originally Posted by jwocky
Does this work on FreeBSD ? I love the idea and look of this hack, but it stays at either 0% or 1% on my forum, so i'm assuming it doenst work for freebsd ?

I'm using SuSE10 and it's not working...


I tried both ps ax | grep -c apache and ps ax | grep -c apache2 since SuSE 10 doesn't seem to respond well to apache and neither of them forum for the forum.

Both work in ssh.

Is there anything I have setup on my server to prevent the command from being executed? I mean, basically you're executing shell commands from php which makes me a little bit nervous.

Aeolian 05-23-2006 10:36 AM

isn't it server intensive to do top all the time.. considering you have a large forum..??
plz confirm..

firstrebel 05-23-2006 01:45 PM

Jut put it on the admin login page. No real need for anyone else to have this.

Bob

bashy 05-23-2006 07:23 PM

Hi

Mine says 1% and has done since installing this (as soon as it came out)
My server load is no less that 4% for the last few days....

What would cause this not to work properly please?

Guest210212002 05-24-2006 10:41 PM

Quote:

Originally Posted by bashy
Hi

Mine says 1% and has done since installing this (as soon as it came out)
My server load is no less that 4% for the last few days....

What would cause this not to work properly please?

Same here.

Nachtfalke 06-04-2006 08:22 PM

Quote:

Originally Posted by Delphiprogrammi
Your host has disabled the exec(); functions nothing todo about that ....

...seems that my hoster has done this today. Everything went fine since the day I installed the hack, but today I got the message "exec, phpinfo, popen, proc_open() has been disabled for security reasons"

It's a pitty, I loved this hack.

DrHUS 09-17-2006 04:29 PM

3.6.1 worked fine .. Thank you

nerofix 09-17-2006 07:23 PM

I get following message by trying to uninstall the mod:

- 210th SECURITY ALERT -

The Board Security System has detected, that you wanted to bring bad
Code to this Forum or you have tried to exploit something here or maybe
another attack linke this.

This attempt was blocked and we logged all information about this.

If you see this message after including a new MOD to your Forum or if
you have reached this site over a normal Forum Link, please contact
the Board Administrator to fix this Problem.

CBACK CrackerTracker

ShellingFox 09-19-2006 04:32 AM

Installed :)
Nice mods

Cagonni 10-18-2006 04:10 AM

it worked but is it possible to show %0.xx ?
it begins from %1 and i suppose it shows only integers.Is it possible to show decimal numbers?

installed.

SCRIPT3R 10-18-2006 05:47 PM

i've edited the image to stats, to more accurately reflect it's purpose (IMO)...
Code:

img src="$stylevar[imgdir_misc]/stats.gif"
also, would like to appear beneath the statistics instead atop, any suggestion?

SCRIPT3R 10-18-2006 06:25 PM

Re: *nix...

this should show the average server load and server uptime in days.
PHP Code:

$uptime = @exec('uptime');
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/",$uptime,$avgs);
$uptime explode(' up '$uptime);
$uptime explode(','$uptime[1]);
$uptime $uptime[0].', '.$uptime[1];
$start=mktime(00011date("Y"), 0);
$end=mktime(000date("m"), date("j"), date("y"), 0);
$diff=$end-$start;
$days=$diff/86400;
$percentage=($uptime/$days) * 100;
$load=$avgs[1].",".$avgs[2].",".$avgs[3]."";
echo 
'Average Load: '.$load;
echo 
'Uptime: '.$uptime



All times are GMT. The time now is 01:09 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.01233 seconds
  • Memory Usage 1,826KB
  • 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
  • (1)bbcode_php_printable
  • (12)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
  • (40)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