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.
