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)
-   -   vB TOP for linux dedicated servers (https://vborg.vbsupport.ru/showthread.php?t=65822)

Erwin 06-03-2004 10:00 PM

vB TOP for linux dedicated servers
 
Dr Erwin Loh's TOP for vB3 version 1.0

Dedicated server admins running vBulletins will know the importance of monitoring the TOP stats on your linux machine.

However, telnet or SSH access is not always available - e.g. when you are work or behind a firewall.

I've made a quick php script, that allows you to quickly view total number of users (members + guests) online, total httpd and mysql processes, and your top stats, all via a web page. It's coded so that only Admins (who have access to your Admin CP) can view this page. It uses your forum permissions, so you can change the code to allow only your userid to view it.

I've purposely made it sparse and clean, so that no bandwidth is wasted when viewing this page.

The file is top.php - just upload it to your forums directory, and view it.

Keep refreshing it to view your TOP stats in realtime. I didn't put in an auto-refresh as that can be annoying.

Enjoy! I know it's useful for me when I'm at work!

msimplay 06-04-2004 01:19 PM

great stuff Erwin , can you add the code to add this as a link in admincp under statistics and logs

jugo 06-04-2004 02:12 PM

BADASS!!!

Can I say that here??

Cause that is what this is..... Thanks Doc.

/me installs.

mmw 06-04-2004 05:10 PM

Very nice will save me time as I'm lazy :)
[high]* mmw installs[/high]

Reeve of shinra 06-04-2004 05:25 PM

Can this be broken down by mysql database ? I'd be interested in seeing that too if possible but this is a handy hack to have.

Erwin 06-05-2004 01:04 AM

Quote:

Originally Posted by Reeve of shinra
Can this be broken down by mysql database ? I'd be interested in seeing that too if possible but this is a handy hack to have.

No, it can't. This looks at the whole server, and gives you a list of the top processes. It's useful for optimizing servers, and monitoring the performance.

The Realist 06-05-2004 06:28 AM

Works well.

Thanks.

deathemperor 06-05-2004 08:51 AM

nice hack Doc.
thanks.

mtha 06-05-2004 07:20 PM

Quote:

Originally Posted by Erwin
Dr Erwin Loh's TOP for vB3 version 1.0

Dedicated server admins running vBulletins will know the importance of monitoring the TOP stats on your linux machine.

The file is top.php - just upload it to your forums directory, and view it.

is there any requirement for server, or file to read the load?
here's all what I get:
Quote:

Users online now = 36 (12 members + 24 guests)Http processes currently running = Mysql processes currently running = Dr Erwin Loh's TOP for vB3 version 1.0

Erwin 06-05-2004 10:42 PM

Quote:

Originally Posted by mtha
is there any requirement for server, or file to read the load?
here's all what I get:

Mmm... are you on a dedicated server? What's the OS?


All times are GMT. The time now is 10:06 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.01063 seconds
  • Memory Usage 1,732KB
  • 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_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
  • (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