Archive for October 1st, 2009

How to keep log of daily network traffic on Dedicated servers?

Here is how to keep log of daily network traffic on Dedicated Servers :

* It is a console-base network traffic monitor for Linux (perfect tool for remote Linux box hosted at ISP)
* It keeps a log of daily and monthly network traffic for the selected network interface(s).
* It collects all data from /proc file system it means normal user can monitor traffic (no need to run vnstat as a root user)
* Easy to setup & configure
* Ease of use

Step # 1: Install vnstat
Debian user can install vnstat using apt-get command

# apt-get install vnstat

Step # 2: Enable vnstat
Once installed you need to create a database with following command:

# vnstat -u -i eth0

Where,
u :forces a database update for interface or creates the database if it doesn’t exist
i eth0 : use to specify interface

Please note that it will start to collect data via cronjob

0-55/5 * * * *   root    /usr/bin/vnstat -u

You do not have to install cronjob yourself; it should be automatically configure by apt-get.

Step # 3 View statistics
Display default traffic statistics

$ vnstat

Display daily traffic statistics

$ vnstat -d

Display monthly traffic statistics:

$ vnstat -m

Display all time top10 traffic days:

$ vnstat -t

Try help option to get all query options:

$ vnstat –help

Dedicated Servers or shared server

Before starting a search for a web hosting provider you should first determine whether you need shared web hosting or dedicated web server hosting.

Dedicated Servers :It is usually a server assigned only to one user, or just a few websites, usually for the sole use by one company. The cost of a dedicated server is very higher than that of a shared hosting account. Dedicated server provides, you the access to the core administrative functions of the server.With many dedicated server plans offered by hosting companies, you are pretty much on your own where technical support is concerned. If you don’t have an IT staff or a server administrator to provide support, you may want to find a person to help you manage your dedicated server. Many hosting companies that offer dedicated server plans also offer “per issue” support, meaning that you will pay a certain amount, usually an hourly fee, for technical support issues. Some dedicated server plans have optional “support tickets” that you can purchase in advance.And there are also many hosting provider who provides fully manged private servers,they do not charge extra for managing the server.With a managed dedicated plan, you get a dedicated server and the hosting company also provides comprehensive support like you usually find in a shared hosting plan. This is a good alternative for companies that don’t have an IT staff or a server administrator and don’t want to get involved at all in the technical aspects of running a server. The price for a managed dedicated server is usually higher than for an unmanaged dedicated server plan as you’re getting technical support included.

Shared Hosting : It is an account on a web server that hosts other shared accounts. The number of accounts on one shared server can vary widely; some servers host a only few hundred, while others have thousands of websites hosted on one single server. Hosting your website on a shared server is a workable solution for many small businesses, as shared hosting accounts are priced very much lower than a dedicated servers. Shared web hosting accounts have limited access to the core administrative functions of the server. Many webhosting companies offers comprehensive technical support for users of shared hosting plans. Complete technical support is usually included in the price of your account plan.

Note:Whatever type of web hosting plan you choose, make sure that the plan you’ve chosen fits your needs.