Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Server Info in Admin Control Panel Details »»
Server Info in Admin Control Panel
Version: 1.0, by Dream Dream is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 11-06-2006 Last Update: 03-25-2007 Installs: 173
Re-useable Code Additional Files  
No support by the author.

This is a script that shows a lot of server information inside the AdminCP.

- Shows server time with exec(date)
- Shows uptime with exec(uptime)
- Shows server load with file_get_contents("/proc/loadavg")
- Shows memory usage with exec(free -m)
- Shows free disk space with exec(df -h)
- phpinfo() link
- Shows MySQL Stats with mysql_stat()
- Shows MySQL Status with "SHOW STATUS" query
- Shows MySQL Vars with "SHOW VARIABLES" query

Its superadmin only.

Installation
- Upload "server_info.php" to your admincp
- Upload "cpnav_serverinfo.xml" to your includes/xml
- Reload your AdminCP, its under "Server Info"


Info on Server Loads

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-07-2006, 08:39 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Redspider
Reply With Quote
  #13  
Old 11-07-2006, 11:17 PM
TexasDreams TexasDreams is offline
 
Join Date: Oct 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by transitbus
Works great except I can not access memory information. This is nothing to do with this mod but instead locking of the server form displaying this info to shmucks like me.
I wasn't getting the "Memory Usage" display either, because my server is on FreeBSD instead of Linux.

So, in "server_info.php" I changed lines 58 through 63...

FROM (Linux using 'free')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(free)</span>');
exec('free', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

TO (FreeBSD using 'vmstat')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(vmstat)</span>');
exec('vmstat', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

Works in a pinch to give the same kind of info.
Reply With Quote
  #14  
Old 11-08-2006, 03:21 AM
Chad F. Chad F. is offline
 
Join Date: Nov 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this secure or is there vulnrabilites with it?
Reply With Quote
  #15  
Old 11-12-2006, 01:05 PM
Guest210212002
Guest
 
Posts: n/a
Default

Very slick. Can you add the output from plain old uptime as well?

/me clicks install
Reply With Quote
  #16  
Old 11-12-2006, 05:26 PM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, whats the unix command for that?
Reply With Quote
  #17  
Old 11-12-2006, 05:45 PM
transitbus transitbus is offline
 
Join Date: Aug 2006
Location: California
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TexasDreams
I wasn't getting the "Memory Usage" display either, because my server is on FreeBSD instead of Linux.

So, in "server_info.php" I changed lines 58 through 63...

FROM (Linux using 'free')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(free)</span>');
exec('free', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

TO (FreeBSD using 'vmstat')
if ($_REQUEST['show'] == 'memoryusage' || empty($_REQUEST['show'])) {
print_form_header('', '');
print_table_header('Memory Usage &nbsp;<span class="normal">exec(vmstat)</span>');
exec('vmstat', $mem);
print_description_row('<pre>'.implode('<br />', $mem).'</pre>');
print_table_footer();

Works in a pinch to give the same kind of info.
LOL didn't even think of this one. Much thanks for it
Reply With Quote
  #18  
Old 11-17-2006, 12:39 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really neat tool, lots of info all in one place. One question though, being BRAND NEW to all this I'm still learning the ropes of vB adminstration.

How do others know or track simple things like available disk space, or memory on their server?

Is that just a (daily) manual process wherein you look at it, or are there automated tools to forewarn you of an impending disaster?(i.e. emailed alert to admin, etc)

Does cPanel (or anything else) have those kind of features? Are there other MODs out there that admins typically use to keep an eye out about such things? Or does your HOST warn you when you come to close to the edge? Etc. Thanxx!
Reply With Quote
  #19  
Old 11-30-2006, 06:49 AM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs
Reply With Quote
  #20  
Old 12-05-2006, 12:35 AM
pedroenf pedroenf is offline
 
Join Date: Jun 2006
Location: Portugal
Posts: 308
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could this mod work in windows 2003 sever? Thanks.
Reply With Quote
  #21  
Old 12-05-2006, 08:37 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works with vb3.6.4 and all types of server?

is there any way to show cpu uses stats ?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:33 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.12356 seconds
  • Memory Usage 2,294KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete