#1 (permalink)  
Old 08-28-2008, 01:54 AM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default Nice Script To View VPS Information

I was surfing around and found a nice script for viewing for information of the server all within the browser. Best yet....It is free!

vpsinfo is a Linux server monitoring script, written in PHP, that provides web access to system status information. It gathers the output from several common Linux commands into one web page, providing a quick overview of the system's current state.

vpsinfo shows the following output:

* Output from top;
* Processed /proc/user_beancounters (VPS resources);
* Output from netstat -nt (current TCP connections);
* Output from netstat -ntl (listening TCP ports);
* Output from pstree (tree view of running processes);
* Output from ls -a /tmp (and ls -al /tmp);
* Output from vnstat (an application that monitors traffic at the network interface) using its various commandline switches;
* Output from mytop (an application that monitors MySQL) or from mysqlreport (a perl script which generates a mysql status report);
* Status monitoring of daemon processes;
* Summary section showing:
o Values for oomguarpages and privvmpages (or free RAM and swap usage on a dedicated machine);
o Data transfer today through the network interface (from vnstat);
o Current number of TCP connections;
o Current number of Apache and MySQL threads, and MySQL queries (from mytop or mysqlreport)
o Disk usage.

beanc helper app is required to access VPS status information.
Code:
wget http://www.labradordata.ca/downloads/install_beanc.sh 
sh install_beanc.sh
The installation script will:

1. Fetch the beanc source code (beanc.c) from this server;
2. Compile the code into an executable;
3. Install the executable setuid at /bin/beanc.


Once beanc is installed vpsinfo & loadavg will automatically use it. No further configuration of the helper app is required.

The entire vpsinfo script is available at

http://www.labradordata.ca/home/13

A demo is included at the above site.
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.

Last edited by bdh734; 08-28-2008 at 02:02 AM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-12-2008, 11:32 PM
Senior Member
 
Join Date: Apr 2008
Posts: 1,345
Default

Sounds good, I guess this is for someone that does not want to view the information via shell or doesn't know the command lines to use?
__________________
Health!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2008, 12:31 AM
geek's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 1,274
Default

Not everyone wants to go through a system of shell commands just to see a few stats, so this is a good idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-13-2008, 11:32 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

Yes...plus you can show it to other people without having to expose the ssh and be able to show many stats all in one screen. But be sure that you password protect the folder to prevent people you do not want to see it. I did have it installed on my server, but I removed it as I did not need it anymore.
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-14-2008, 10:02 PM
Senior Member
 
Join Date: Apr 2008
Posts: 1,345
Default

Quote:
Originally Posted by bdh734 View Post
but I removed it as I did not need it anymore.
Funny, that isn't a good sales pitch. I would have thought that this is something you would always need installed?
__________________
Health!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-14-2008, 11:43 PM
bdh734's Avatar
Senior Member
 
Join Date: Jun 2008
Location: A small room with flickering blue and green lights
Posts: 309
Send a message via MSN to bdh734 Send a message via Yahoo to bdh734
Default

No...I teach students, so this was an easy way to show the processes on a projector. I can put it back up at time, so I just compressed it and when I need it again, I will extract back on the server.
__________________
For HELP, summon support with the Bat-Signal: http://support.hostv.com/

Sysadmins are sexy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-16-2008, 11:58 AM
Senior Member
 
Join Date: Apr 2008
Posts: 1,345
Default

OK that's cool, what do you teach exactly, you're a professor?
__________________
Health!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-16-2008, 01:15 PM
Senior Member
 
Join Date: Jan 2008
Posts: 898
Default

That is a good one, thanks for sharing, but I'll have to get my host to install it though as I'm not that smart .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:38 AM.


Powered by: vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15