Bandwidthd

From Notes_Wiki
Revision as of 06:46, 29 November 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Network_related_tools|Network tools</yambe:breadcrumb> =bandwidthd= bandwidthd can be used to check bandwidth usage by each IP on a gateway or proxy machine...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Network_related_tools|Network tools</yambe:breadcrumb>

bandwidthd

bandwidthd can be used to check bandwidth usage by each IP on a gateway or proxy machine for monitoring purposes. To install bandwidthd use following steps:

  1. Configure all repositories such as rpmfusion, repoforge, etc. (esp. epel)
  2. yum -y install bandwidthd
  3. yum -y install apache mod_ssl php php-gd
  4. vim /etc/bandwidth.conf
    1. Ensure that subnets are correct
    2. Set correct device named eg "dev venet0", "dev eth1", etc.
  5. service bandwidthd start
  6. service httpd restart
  7. chkconfig bandwidthd on
  8. chkconfig bandwidthd on
  9. Open http://192.168.122.102/bandwidthd/ to see the bandwidth usage graph


To restrict access to bandwidthd to administrators use:

  1. Edit /etc/httpd/conf.d/bandwidthd.conf and append
    <Directory "/var/www/bandwidthd/htdocs">
    Order Allow,Deny
    Allow from All
    </Directory>
    Here replace "Allow from All" appropriately