vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Microstats (only for admin) - load times, server loads, queries, uncached templates! (https://vborg.vbsupport.ru/showthread.php?t=59700)

d3nnis 04-23-2004 05:39 AM

Quote:

Originally Posted by kmike
Very weird.
Ok, what does "cat /proc/loadavg" show when run in the command line?
And since we're so deep in testing, what's output of this php script:
PHP Code:

<?php
echo file_get_contents("/proc/loadavg");
?>



i got a open_basedir restriction error.

i cannot test cat /proc/loadavg via the command line cos i am not at home. anymore command line commands to test? i do one shot upon reaching home.

kmike 04-23-2004 08:12 AM

Ok, we're getting somewhere.
If you want to use latest version of the hack, you'll have to add "/proc" to the list of open_basedir restricted directories. It's done through editing your httpd.conf, or php.ini, or through .htaccess (not sure about last one though). Or, if you want to save the hassle, just roll back to previous version of hack.

d3nnis 04-23-2004 03:33 PM

Quote:

Originally Posted by kmike
Ok, we're getting somewhere.
If you want to use latest version of the hack, you'll have to add "/proc" to the list of open_basedir restricted directories. It's done through editing your httpd.conf, or php.ini, or through .htaccess (not sure about last one though). Or, if you want to save the hassle, just roll back to previous version of hack.


thanks, i enable my domain, keeptouch.net and forums.keeptouch.net to allow open_basedir restriction via whm. i can see the server loads now :)

d3nnis 05-01-2004 07:45 PM

kmike, i just migrated to a new server running on freeBSD 4.9... the new codes (server loads not showing again) doesn't works anymore... any resolution?

root# ls -ld /proc
dr-xr-xr-x 1 root wheel 512 May 2 04:45 /proc
root# ls -l /proc/loadavg
ls: /proc/loadavg: No such file or directory

seems like i need this loadavg... where can i get it?

uber 05-04-2004 03:15 PM

Nice hack!

I've got my footer setup with an inside table with a dark border surrounding the content table. Is there a way that I could move the microstats up so it under the vb copyright line?

http://www.skinnylizard.com/verge/images/footer.gif


http://www.skinnylizard.com/verge

uber 05-05-2004 01:40 PM

Nevermind, I figured it out...

I made it a link in my footer that goes to javascript:void(0); and the mouse over lists the page stats...

I'll share the code modifications if anyone is interested.

Boofo 05-05-2004 01:53 PM

Quote:

Originally Posted by uber
Nevermind, I figured it out...

I made it a link in my footer that goes to javascript:void(0); and the mouse over lists the page stats...

I'll share the code modifications if anyone is interested.

I'd like to see this. ;)

uber 05-05-2004 02:50 PM

In my footer template, I have a link that shows the forum time. You need to find a comon element that's in your footer and nowhere else in you site or this will cause problems.

Code:

<a style="text-decoration:none" title="All times are GMT$timediff. The time now is $timenow" href="javascript:void(0);"><b>Forum Time</b></a>
In the functions.php file, I changed Erwin's $vartext variable to read.

Code:

$vartext = str_replace('<b>Forum Time</b></a>', "<b>Forum Time</b></a>&nbsp;|&nbsp;<a style=\"text-decoration:none\" title=\"$debughtml\" href=\"javascript:void(0);\"><b>Page Stats</b></a><br>",$vartext);
I changed the $debughtml variable to only show total time and query count, it can stay as it was in Erwin's original, but all the text formatting needs to be removed becuase the title tag will show all formatting tags as text.

Code:

$debughtml = "Page generated in $totaltime seconds with $query_count queries";

kmike 05-05-2004 07:14 PM

d3nnis: freebsd doesn't have /proc/loadavg, you'll have to resort to the previous version of this hack which invokes "loadavg" command.

d3nnis 05-06-2004 08:08 AM

Quote:

Originally Posted by kmike
d3nnis: freebsd doesn't have /proc/loadavg, you'll have to resort to the previous version of this hack which invokes "loadavg" command.


ohh okie...

ermm i dun have the codes anymore...

anyone has it?


All times are GMT. The time now is 08: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.01247 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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