info@diadem.in
Contact Us   |   Blog   |   Client Portal   |   Knowledgebase   |   Pay Online   |   Hosting SLA  
Diadem Technologies
  • Company
    • About Us
    • Management
    • Datacentre Network
    • Clientele
    • Testimonials
  • Shared Hosting
    • Linux Hosting
    • Windows Hosting
    • WordPress Hosting
    • Windows 2012 R2 Hosting
  • Cloud VPS
    • Linux DevOps VPS
    • Linux Cloud VPS
    • Windows 2016 Cloud Server
    • Windows 2012 R2 VPS
    • Cloud Server FAQs
    • Power Panel Demo
  • Jelastic PAAS
  • SAAS Solutions
    • Email Marketing Solution
    • Premium Email Antispam
  • Dedicated
    • Dedicated Servers
    • Server Sysadmin Services
    • Dedicated Server FAQs
  • Domains
    • Register Domain
    • Domain Pricing
    • Domain FAQs
  • SSL Certificates
    • Globalsign SSL Plans
    • Globalsign SSL Features
  • Company
    • About Us
    • Management
    • Datacentre Network
    • Clientele
    • Testimonials
  • Shared Hosting
    • Linux Hosting
    • Windows Hosting
    • WordPress Hosting
    • Windows 2012 R2 Hosting
  • Cloud VPS
    • Linux DevOps VPS
    • Linux Cloud VPS
    • Windows 2016 Cloud Server
    • Windows 2012 R2 VPS
    • Cloud Server FAQs
    • Power Panel Demo
  • Jelastic PAAS
  • SAAS Solutions
    • Email Marketing Solution
    • Premium Email Antispam
  • Dedicated
    • Dedicated Servers
    • Server Sysadmin Services
    • Dedicated Server FAQs
  • Domains
    • Register Domain
    • Domain Pricing
    • Domain FAQs
  • SSL Certificates
    • Globalsign SSL Plans
    • Globalsign SSL Features

VPS data and bandwidth usage tracking with bandwidthd

Diadem Technologies > Virtualisation > VPS data and bandwidth usage tracking with bandwidthd

VPS data and bandwidth usage tracking with bandwidthd

Apr 27, 2010anirbanVirtualisation4 Comments

You don’t need any database or snmp connection to monitor all of your client with bandwidthd an open source application for monitoring bandwidth usage on Apache and IIS. All you need just libcap, libpng, libgd and apache/IIS installed on your Linux/Windows system and you can monitor all your connected clients per IP and per connection protocol.

Installation and configuration in windows

Download the packages below and install them prior to installing the bandwidthd software

  • http://www.winpcap.org/install/bin/WinPcap_4_1_1.exe
  • http://downloads.sourceforge.net/project/gnuwin32/libpng/1.2.37/libpng-1.2.37-setup.exe?use_mirror=nchc
  • http://www.libgd.org/releases/gd-latest-win32.zip

For installing gd-latest extract the zip archive and place it in a directory in C drive say “gd”. Navigate to the directory C:gdbin and copy the bgd.dll to c:windowssystem32 directory.

  1. Download the “Bandwidthd” software from the link
    http://sourceforge.net/projects/bandwidthd/files/
  2. Extract the zip archive and place it in a folder say c:inetpubbandwidthd.
  3. In IIS create  a virtual directory either to your existing website or under the default website and point the home directory to “C:Inetpubbandwidthdhtdocs”.
  4. Open the file C:Inetpubbandwidthdetcbandwidthd.conf and  provide the correct subnet of your network.
  5. Now navigate to the directory C:Inetpubbandwidthd and execute the batch file “Install Service.bat”. This will install a service for bandwidthd. Make the service start up type as automatic and start the service.
  6. Now point your web server as http://<server IP>/bandwidthd and you will now be able to view the graphs containing the bandwidth statistics.

Installation and configuration in Redhat/Centos/Fedora Linux

  1. As a prerequisite please ensure that you have libcap, libpng, libgd and apache installed in your computer.
    # rpm -qa | grep libcap
    # rpm -qa | grep libpng
    # rpm -qa | grep gd
    # rpm -qa | grep httpd
  2. Next download the bandwidthd RPM according to your Linux distro from the link
    http://rpm.pbone.net/index.php3 (Search with “bandwidthd”)
  3. Install the RPM as below
    # rpm -ivh bandwidthd-2.0.1-9.el5.i386.rpm
    This will install bandwidthd under /var/www/bandwidthd
  4. Next open the httpd.conf file
    # vi /etc/httpd/conf/httpd.conf
    Add the lines as below to it and save:Alias /bandwidthd “/var/www/bandwidthd/htdocs”
    <Directory “/var/www/bandwidthd/htdocs”>
    Order Allow,Deny
    Allow from All
    </Directory>
  5. open /var/www/bandwidthd/etc/bandwidthd.conf and provide the correct subnet for your network.
  6. Restart the webserver
    # service httpd restart.
  7. Start the bandwidthd service
    # service bandwidthd start
  8. Now point your browser to http://<server IP>/bandwidthd and start checking the bandwidth statistics graphs.

Few screenshots

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • More
  • Click to share on Pocket (Opens in new window)

Related

Tags: bandwidth,  bandwidthd,  virtual machine bandwidth

Written by anirban

VPS data and bandwidth usage tracking with bandwidthd (4)

  1. Joeri June 16, 2010 at 4:12 pm

    Would bandwidthd work behide a iptables firewall?

    Reply ↓
  2. admin November 11, 2010 at 9:42 am

    Yes Joeri, this utility would work fine behind an iptables firewall as iptables would only block incoming connections and bandwidthd is a daemon service withing the server.

    Reply ↓
  3. Zamorano February 3, 2011 at 7:59 pm

    open /var/www/bandwidthd/etc/bandwidthd.conf not found
    and httpd error “Starting httpd: [Wed Feb 02 07:19:08 2011] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 548 will probably never match because it overlaps an earlier Alias.
    httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName”

    Reply ↓
  4. Anirban February 5, 2011 at 10:34 am

    It seems that there are some settings in the httpd.conf that conflicts with your bandwidthd Alias declaration in the the /etc/httpd/conf/httpd.conf. You can provide the configuration here. Also in the /etc/httpd/conf/httpd.conf file provide the correct server FQDN name or IP address against the directive “ServerName”.

    Reply ↓

Leave a Reply Cancel reply

← Diadem VPS Hosting Services – Dedicated Server performance minus the expense!
Create custom registration fields using Drupal →

Blog Search

Recent Post

  • Choose PaaS to innovate faster and save cost with less risk
    January 9, 2019
  • 5 Reasons to Stop by Diadem Booth #22 @ NASSCOM International SME Conclave 2019 in Kolkata
    December 19, 2018
  • 11 Steps to secure your Windows VPS Hosting
    June 6, 2018

Comments

  • PHP performance benchmarking and optimisation tips - Diadem Technologies on Linux Cloud VPS
  • Diadem listed as a Featured Parallels Partner for Plesk | Diadem Technologies on Linux Cloud VPS
  • Hriday on Two ways to add Joomla users using your custom code

Archives

Categories

  • Apps
  • Cloud Computing
  • CMS
  • Database
  • Datacenters
  • Domain Name Service
  • Ecommerce
  • Email Marketing
  • Experiences
  • Hosted Email
  • Hosted Solutions
  • Industry Events
  • Jelastic
  • Linux Administration
  • Marketing Tips & Advice
  • News & Updates
  • Outsourcing
  • PHP/MySQL
  • Plesk Panel
  • SEO
  • Server Management Portal
  • Virtualisation
  • Web Application Security
  • Web Hosting
  • Windows Server
  • WordPress

Blog Post

  • Choose PaaS to innovate faster and save cost with less risk
    January 9, 2019
  • 5 Reasons to Stop by Diadem Booth #22 @ NASSCOM International SME Conclave 2019 in Kolkata
    December 19, 2018
  • 11 Steps to secure your Windows VPS Hosting
    June 6, 2018

Quick Contact

Diadem Technologies Pvt. Ltd.

Primarc Tower, Suite 502/503, DN - 36, Sec - V, Salt Lake City, Kolkata - 700091, WB, IN.

+91-33-66341414

info@diadem.in

Follow Us on

tweetfacebookin

Stay Updated!

Mail List Subscription Form

Please fill in and submit the form below to subscribe to our mailing list.

*  Your Email Address:

Legal Documents

MSA | AUP | SLA | Privacy Policy
Copyright © 2003-2017 Diadem Technologies Pvt. Ltd. All Rights Reserved. | Privacy Policy
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.