vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - Server Info in Admin Control Panel (https://vborg.vbsupport.ru/showthread.php?t=130960)

Dream 11-07-2006 08:39 PM

Thanks Redspider :)

TexasDreams 11-07-2006 11:17 PM

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. :)

Chad F. 11-08-2006 03:21 AM

Is this secure or is there vulnrabilites with it?

Guest210212002 11-12-2006 01:05 PM

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

/me clicks install

Dream 11-12-2006 05:26 PM

Sure, whats the unix command for that?

transitbus 11-12-2006 05:45 PM

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 :D

adwade 11-17-2006 12:39 AM

This is a really neat tool, lots of info all in one place.:D 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!

da420 11-30-2006 06:49 AM

/me installs

pedroenf 12-05-2006 12:35 AM

Could this mod work in windows 2003 sever? Thanks.

Zia 12-05-2006 08:37 AM

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

is there any way to show cpu uses stats ?


All times are GMT. The time now is 07:18 PM.

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.01222 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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