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)

jw00dy 03-27-2007 08:36 AM

Yeah, those numbers are pretty frightening...

Doctor Death 03-27-2007 11:38 AM

Quote:

Originally Posted by Dream (Post 1212391)
I always send an update when I update my mods. Sending an update sends an email to everyone that has the mod marked as Installed. So no need for a useless product xml just to show a version number.

Well, I ask for this not just to see a number... I would like the metadata populated to support the CHECK VERSION function... I have a product that automatically does this, and many developers do this which allows immediate and automatic notification.

Thanks, great mod.

daddygrim 03-27-2007 01:29 PM

Uptime exec(uptime)

8:19AM up 336 days, 4:48, 0 users, load averages: 0.42, 0.63, 0.67

Server Loads: averages: 0.70, 0.68, 0.69 0.70 : 0.68

Filesystem Size Used Avail Capacity Mounted on
/dev/amrd0s1a 3.9G 843M 2.7G 23% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/amrd0s1g 49G 18G 27G 40% /hsphere
/dev/amrd0s1f 1.9G 74M 1.7G 4% /tmp
/dev/amrd0s1d 4.8G 3.3G 1.2G 73% /usr
/dev/amrd0s1e 4.8G 2.2G 2.3G 48% /var
procfs 4.0K 4.0K 0B 100% /proc
linprocfs 4.0K 4.0K 0B 100% /usr/compat/linux/proc

wLTD 03-27-2007 02:30 PM

Thanks.
Since moving to a dedicated, reading the stats are easier this way.

Gracias and Marked :)

-Mike

ymy 03-27-2007 04:05 PM

Hi

How can Used only server load information on the form home or footer

like this Server Loads: 2.22

if there is way i will try to install it

thanks

Dream 03-28-2007 10:26 PM

Use this mod

https://vborg.vbsupport.ru/showthread.php?t=140449

Muellmann 03-29-2007 05:33 PM

It works perfect thanks for this addon :)

GrendelKhan{TSU 03-30-2007 12:28 PM

simple goodness... thanks!

<< installed

rjmjr69 04-17-2007 06:52 AM

Thank you very nice work

Dunno012007 04-17-2007 03:53 PM

Great Mod thanks

BadgerDog 04-17-2007 07:57 PM

Installed....

Reloaded AdminCP and logged in...

Run any function and get this...

Fatal error: Call to undefined function rpm_print_stop_back() in /usr/www/apache/htdocs/milsurps/admincp/server_info.php on line 17

Suggestions?

Thanks

Regards,
Badger

Edit: Ignore above... discovered you had to be logged in as SuperAdmin.... :)

I usually avoid that and only login as Admin.... can I change something someplace to be able to use it under the lower capability?

BTW, here's what I get for loading...

16:57:51 up 194 days, 20:26, 0 users, load average: 0.08, 0.03, 0.01

ymy 04-17-2007 09:03 PM

Quote:

Originally Posted by Dream (Post 1214848)


thanks a lot Dream :up:

NeRilkA 04-21-2007 04:17 PM

Thanks Dream :)

I'm testing it for the translation but Uptime is empty and Server Loads said Failed (i didn't translate these lines ;))

And on another forum I got this error with the original file :
Quote:

Fatal error: Call to undefined function rpm_print_stop_back() in /home/www/***/web/forum/admincp/server_info.php on line 17
Oh i just thought it may be because this other forum is on 3.6.4 ?

Dotara 04-21-2007 06:41 PM

Quote:

Originally Posted by TexasDreams (Post 1112727)
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();

After replacing these codes for freebsd, I'm getting error "parse error: syntax error, unexpected $end in /usr/home/dotara/public_html/admincp/server_info.php 152"

:confused:

I'm using FreeBSD 6.x

Dream 04-21-2007 06:48 PM

Quote:

Originally Posted by NeRilkA (Post 1232717)
Thanks Dream :)

I'm testing it for the translation but Uptime is empty and Server Loads said Failed (i didn't translate these lines ;))

And on another forum I got this error with the original file :


Oh i just thought it may be because this other forum is on 3.6.4 ?

Are you running on unix?

The other problem you have is my bad. You need to run this as a Super Admin or that will happen.

Dream 04-21-2007 06:49 PM

Quote:

Originally Posted by Dotara (Post 1232821)
After replacing these codes for freebsd, I'm getting error "parse error: syntax error, unexpected $end in /usr/home/dotara/public_html/admincp/server_info.php 152"

:confused:

I'm using FreeBSD 6.x

Most likely an error in your editing the file, thats a PHP parse error. Check line 152 of the file.

Dotara 04-21-2007 06:53 PM

Quote:

Originally Posted by Dream (Post 1232826)
Most likely an error in your editing the file, thats a PHP parse error. Check line 152 of the file.

Here is Line 152 ?>
I've only replaced the codes of memory usage, didn't edit anything else.

Dream 04-21-2007 06:54 PM

Attach your modified serverinfo.php

Dotara 04-21-2007 06:56 PM

Attached.

Dream 04-21-2007 06:59 PM

I think you ate a } after

PHP Code:

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


Dotara 04-21-2007 07:10 PM

Quote:

Originally Posted by Dream (Post 1232833)
I think you ate a } after

PHP Code:

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


No! I made the mistake in "free" on line 4 where I should put vmstat. I only placed vmstat once instead of twice. Sorry. Now it's working fine :)

I clicked "Mark as Installed"

BadgerDog 04-21-2007 07:40 PM

Quote:

Originally Posted by BadgerDog (Post 1229953)
Installed....


I usually avoid that and only login as Admin.... can I change something someplace to be able to use it under the lower capability?

BTW, here's what I get for loading...

16:57:51 up 194 days, 20:26, 0 users, load average: 0.08, 0.03, 0.01

Dream....

Any advice on what to change so I can use this just as an Admin?

Thanks

Regards,
Badger

NeRilkA 04-21-2007 10:29 PM

Quote:

Originally Posted by Dream (Post 1232825)
Are you running on unix?

The other problem you have is my bad. You need to run this as a Super Admin or that will happen.

I suppose its unix because the os is linux ;)

I'm sorry I forgot about the Superadmin when i was testing it on the other forum :erm: :p

Dream 04-22-2007 12:32 AM

Quote:

Originally Posted by BadgerDog (Post 1232855)
Dream....

Any advice on what to change so I can use this just as an Admin?

Thanks

Regards,
Badger

remove this from server_info.php

PHP Code:

// ########################## SUPERADMIN CHECK ############################
if (!in_array($vbulletin->userinfo['userid'], preg_split('#\s*,\s*#s'$vbulletin->config['SpecialUsers']['superadministrators'], -1PREG_SPLIT_NO_EMPTY)) ) {
    
rpm_print_stop_back("You don't have permission to access this page.");


Nerilka, I'm sorry but I don't know why uptime isn't working for you. Do you have access to the server? You could try using uptime in the command line and see if your unix system has this command.

NeRilkA 04-22-2007 03:08 PM

It doesn't really matter for the uptime, i don't have access to the server anyway

is it the same problem for Server Loads failed ?

thanks for your time :)

Dream 05-05-2007 09:49 PM

Not sure, sorry. I'm not very familiar with Unix commands, I just borrowed some codes from other places to wrap this up for me.

kelekian 05-06-2007 05:15 AM

server time, uptime, memory usage, free disk space, is coming as blank... :S

someone knows this problem?

jw00dy 05-06-2007 09:08 PM

Are you on a dedicated server? If you are not, then it's very very possible this will not work for you. If you are simply leasing some space from someone then it's more then likely that it won't work. It all depends on how they have you setup.

Dream 05-06-2007 09:12 PM

Also your exec() PHP function could be disabled by your host.

kelekian 05-07-2007 02:19 PM

Quote:

Originally Posted by jw00dy (Post 1242698)
Are you on a dedicated server? If you are not, then it's very very possible this will not work for you. If you are simply leasing some space from someone then it's more then likely that it won't work. It all depends on how they have you setup.

semi-dedicated server...

jw00dy 05-07-2007 06:48 PM

semi meaning it's not your server and you lease space from someone else.

What dream mentioned is probably exactly the problem.

perfphysio 05-13-2007 12:16 PM

I have a few errors following this installl on 3.6.6. They are below. Is this due perhaps to me running a VPS system?

Warning: exec() [function.exec]: Unable to fork [date] in \admincp\server_info.php on line 33
Warning: exec() [function.exec]: Unable to fork [uptime] in \admincp\server_info.php on line 41
Warning: exec() [function.exec]: Unable to fork [free -m] in \admincp\server_info.php on line 69
Warning: exec() [function.exec]: Unable to fork [df -h] in \admincp\server_info.php on line 77

jw00dy 05-24-2007 01:57 AM

Yes, looks like the php functions are not allowed to be ran on your VPS.

ymy 06-29-2007 04:03 AM

Nice thank you

Install click

Ymy
.

zooro 06-29-2007 10:28 AM

it seems that its not work on 3.6.7 pl !
cannot import or upload

any suggestions ?

Dream 06-29-2007 06:48 PM

You don't import the xml, read the installation instructions again.

quiklink 07-02-2007 02:02 AM

Nice mod! But is there any way to have it give a notice like 'You must be a super-admin to use these functions' instead of the error it throws? The current check can't find rpm_print_stop_back

Delphiprogrammi 07-02-2007 09:43 PM

nice one verry nice

SuperTaz 07-03-2007 04:18 AM

Very nice. installed.

Carlos2 07-18-2007 09:15 AM

With this plugin can you see the CPU memory consume??


All times are GMT. The time now is 11:29 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.01541 seconds
  • Memory Usage 1,832KB
  • 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_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