Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
My 1st hack :) Server Health Details »
My 1st hack :) Server Health
Mod Version: 1.00, by over (Member) over is offline
Developer Last Online: Jan 2003 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 4
Released: 18 Nov 2001 Last Update: Never Downloads:
Not Supported Is in Beta Stage  

Tested on various *nix servers

Description, shows you some important details of your server, the current time, uptime, amount of users that are telneted/ssh'd into your box, the load average, number of proecesses and some information about them, memory usuage and also the swap file usage. ie displays "top" information.

Anything above a load average of more than 5 you should try to find out whats taking up the resources.
above 10 your server will be running slow as hell.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download The Attachment, which contains the file, required servstats.php and also a copy of these instructions

Edit the Following Vars To Suit Your Needs.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

you can find them on lines 6 and 7.

Upload to {vbportalpath}/{forums dir}/{admin dir}

Edit the index.php in your main forum admin directory as follows (eg /{path to vbportal}/{forum path}/{vbb admin path}/index.php)

Find code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Below that add


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Upload the edited file to /{vbb dir}/{forums dir}/{admin dir}/
The above will give you a sub menu in your vbb's main admin panel.

(all done if just using vbb 2.2.x)

Goto your portal admin area (eg http://127.0.0.1/vbportal/admin.php
Choose side blocks (eg http://127.0.0.1/vbportal/admin.php?op=AdvBlocksAdmin)
Edit the Administration Block (eg http://127.0.0.1/vbportal/admin.php?...cksEdit&bid=15)

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Under that add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above will only let admins able to click the link to the server health directly from the admin menu
on the Administration Sideblock, no others will be able to see it.

Open /{pathtovbportal}/admin.php
Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Under that add


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above gives you a link in your vbportal admin area

All done


If yo have a different forums or vbb admin path please change the directories appropriately for the above instructions.

Sorry if theirs better ways of doing this, but im new at trying, and trying is what counts?
Hope you find it useful.

You can also change the name of servstats.php to what you desire, if you do please remember to change all occurances of
servstats.php in all occurances in these intructions.
For support check www.phpportals.com

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 18 Nov 2001, 19:11
over over is offline
 
Join Date: Nov 2001
i'll add hd space, used, left to it, i'll try also to make it so that you can fill in the space allocated so it calc's the value from that at some point in future
Reply With Quote
  #3  
Old 18 Nov 2001, 19:30
LDT LDT is offline
 
Join Date: Nov 2001
Gotta give this a try.
Reply With Quote
  #4  
Old 18 Nov 2001, 19:44
LDT LDT is offline
 
Join Date: Nov 2001
Upload to {vbportalpath}/{forums dir}/{admin dir}
Uhm, there already is a stats.php there... I don't think I'm supposed to replace that?
Reply With Quote
  #5  
Old 18 Nov 2001, 20:01
over over is offline
 
Join Date: Nov 2001
Originally posted by LDT

Uhm, there already is a stats.php there... I don't think I'm supposed to replace that?
nope, call it something else.


updated the instuctions and attachment soz for that

Last edited by over; 18 Nov 2001 at 20:05.
Reply With Quote
  #6  
Old 18 Nov 2001, 23:28
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Joe
I will try it out tonight or tommrow
Reply With Quote
  #7  
Old 19 Nov 2001, 15:07
LDT LDT is offline
 
Join Date: Nov 2001

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any ideas?
Reply With Quote
  #8  
Old 19 Nov 2001, 15:16
LDT LDT is offline
 
Join Date: Nov 2001
OK, got it now... you should check the php file in the zip file, it seems to be pretty messed up... Many things are in the same line... Which doesn't really matter until it hits this line:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I also think it's better to add

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

right before

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you want to leave i that way however you should remove ,"|" from

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

so that it looks like this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as it isn't needed.

Last edited by LDT; 19 Nov 2001 at 15:37.
Reply With Quote
  #9  
Old 19 Nov 2001, 17:37
over over is offline
 
Join Date: Nov 2001
Smile

i prolly uploaded my old file, i'll correct that when im back home
adding the menu under vbb's own stats is prolly a better idea, didn't think of that thanks, got a new version to upload neway which also states space left (option to input drive space allocated) and the space used in that directory.
Reply With Quote
  #10  
Old 19 Nov 2001, 18:19
LDT LDT is offline
 
Join Date: Nov 2001
Great, I'll be waiting.
Reply With Quote
  #11  
Old 20 Nov 2001, 19:14
over over is offline
 
Join Date: Nov 2001
fixing a couple of issues with the disc space addition, not forgotten to update, doesnt work properly yet.
Reply With Quote
  #12  
Old 26 Nov 2001, 01:00
Cruz Cruz is offline
 
Join Date: Oct 2001
after getting many many parse errors, i got it working....here is the new file:
Attached Files
File Type: txt bla.txt (5.7 KB, 37 views)
Reply With Quote
  #13  
Old 08 Dec 2001, 23:43
exodus's Avatar
exodus exodus is offline
 
Join Date: Nov 2001
Real name: Jeff
you may want to add the "httpd" processes cpu utilization.
Reply With Quote
  #14  
Old 02 Feb 2002, 22:39
Jawelin Jawelin is offline
 
Join Date: Nov 2001
This hack worked well for more than a month. Now, suddendly, it stopped without changing anything on my server or on servstats.php ????
Still using vb 2.2.1 ...

Actually I get - now, for example, an html page containing only:
<body><pre>

Sat Feb 2 18:40:22 EST 2002

</pre></body></html>
Bah ?!?
Reply With Quote
  #15  
Old 07 Feb 2002, 04:37
haas haas is offline
 
Join Date: Jan 2002
Uhmmm. Seems very good.... I'll install it when I get a *nix box for the board.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 20:19.

Layout Options | Width: Wide Color: