Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:user-guide:services:bandwidthd [2018/02/17 18:11] – ↷ Page moved from doc:howto:bandwidthd to docs:user-guide:services:bandwidthd bobafetthotmaildocs:guide-user:services:network_monitoring:bandwidthd [2021/07/24 05:43] – [Bandwidthd] someothertime
Line 1: Line 1:
 ====== Bandwidthd ====== ====== Bandwidthd ======
 +
 +{{section>meta:infobox:howto_links#config-network-device&noheader&nofooter&noeditbutton}}
 +
 [[http://bandwidthd.sourceforge.net/]] [[http://bandwidthd.sourceforge.net/]]
  
-**Note: bandwidthd in trunk (DD) or LEDE tracks the SMTP data while the version in the previous version of OpenWrt (Chaos Calmer and older) tracks the P2P data (Gnutella, eDonkey, etc.).  All of the other data (FTP, UDP, TCP, etc.) is tracked the same way in all versions.**+**Note: bandwidthd in LEDE/OpenWRT 17.01 or higher tracks the SMTP data (ports 25, 465 and 587) while the version in the previous version of OpenWrt (Chaos Calmer and older) tracks the P2P data (Gnutella, eDonkey, etc.).  All of the other data (FTP, UDP, TCP, etc.) is tracked the same way in all versions.**
  
 **Bandwidthd is composed of 4 packages: **Bandwidthd is composed of 4 packages:
 ** **
-    **bandwidthd**: this package cannot save in a postgresql database.  This package is currently available in trunk, 15.05.1 and OpenWrt version older than Chaos Calmer (ex: 14.07): for 15.05, it has to be compiled.  This allows the router to generate bandwidth data that is accessible with a browser at http://192.168.1.1/bandwidthd.  **__//Use this package if you have no intention of storing the data on a postgresql or sqlite database.//__** +    **bandwidthd**: this package cannot save in a postgresql or sqlite database. This allows the router to generate bandwidth data that is accessible with a browser at http://192.168.1.1/bandwidthd.  **__//Use this package if you have no intention of storing the data on a postgresql or sqlite database.//__** 
-  -   **bandwidthd-pgsql**: this package can do everything the bandwidthd package can do, but in addition it can save the data to a postgresql database that can reside on the router or on another server.  This data can be analyzed by a series of PHP scripts and visualized with a browser.  Note that the router, the posgresql database and the graphing of the data by PHP can be on three different systems, one for each task (i.e.: __collecting the data__, __storing the postgresql data__ and __generating the graphs with PHP__).  Note that postgresql does not have to be installed on the router if the postgresql data is not stored on the router.  __bandwidthd-pgsql__ requires the package __libpq__ to be installed: this package is already installed if postgresql is installed.  **NOTE: install only one of the package: bandwidthd, bandwidthd-pgsql or bandwidthd-sqlite.**+  -   **bandwidthd-pgsql**: this package can do everything the bandwidthd package can do, but in addition it can save the data to a postgresql database that can reside on the router or on another server.  This data can be analyzed by a series of PHP scripts and visualized with a browser.  Note that the router, the posgresql database and the graphing of the data by PHP can be on three different systems, one for each task (i.e.: __collecting the data__, __storing the postgresql data__ and __generating the graphs with PHP__).  Note that postgresql does not have to be installed on the router if the postgresql data is not stored on the router. **NOTE: install only one of the package: bandwidthd, bandwidthd-pgsql or bandwidthd-sqlite.**
   -   **bandwidthd-php**: This package contains the PHP files that are installed in /www/phphtdocs on the router.  It is only required if the OpenWrt router serves as the web server to generate the graphs from the data on the postgresql database by pointing the browser to http://192.168.1.1/phphtdocs.  **NOTE: if you installed bandwidthd-sqlite, do not install bandwidthd-php as bandwidthd-sqlite contains the required PHP files to graph the data.**   -   **bandwidthd-php**: This package contains the PHP files that are installed in /www/phphtdocs on the router.  It is only required if the OpenWrt router serves as the web server to generate the graphs from the data on the postgresql database by pointing the browser to http://192.168.1.1/phphtdocs.  **NOTE: if you installed bandwidthd-sqlite, do not install bandwidthd-php as bandwidthd-sqlite contains the required PHP files to graph the data.**
   - **bandwidthd-sqlite**.  This package, in addition to do what the plain bandwidthd package can do, stores the data in a sqlite database on the router and graph the data using PHP.  In a way, it is a combination of bandwidthd-pgsql and bandwidthd-php together, but using sqlite instead of postgresql.  **NOTE: install only one of the package: bandwidthd, bandwidthd-pgsql or bandwidthd-sqlite.**   - **bandwidthd-sqlite**.  This package, in addition to do what the plain bandwidthd package can do, stores the data in a sqlite database on the router and graph the data using PHP.  In a way, it is a combination of bandwidthd-pgsql and bandwidthd-php together, but using sqlite instead of postgresql.  **NOTE: install only one of the package: bandwidthd, bandwidthd-pgsql or bandwidthd-sqlite.**
  
-The availability of each package varies according to which version of OpenWrt you have:+The availability of each package varies according to which version of OpenWrt/LEDE you have:
  
 **bandwidthd** **bandwidthd**
Line 18: Line 21:
   * In Barrier Breaker (14.07) in "oldpackages" as a package.   * In Barrier Breaker (14.07) in "oldpackages" as a package.
   * In original Chaos Calmer (15.05) __it is not available as a precompiled package__: you have to compile it yourself and install it.  See https://wiki.openwrt.org/doc/howto/build to have details on how to compile a package.   * In original Chaos Calmer (15.05) __it is not available as a precompiled package__: you have to compile it yourself and install it.  See https://wiki.openwrt.org/doc/howto/build to have details on how to compile a package.
-  * In the minor fix release of Chaos Calmer (15.05.1) it is available as a package. +  * As a package in 15.05.1 or higher.
-  * In trunk (DD) or LEDE as a package (https://downloads.openwrt.org/snapshots/trunk/).+
  
 **bandwidthd-pgsql** **bandwidthd-pgsql**
   * In the original Chaos Calmer (15.05) __it is not available as a precompiled package__: you have to compile it yourself and install it.  See https://wiki.openwrt.org/doc/howto/build to have details on how to compile a package.   * In the original Chaos Calmer (15.05) __it is not available as a precompiled package__: you have to compile it yourself and install it.  See https://wiki.openwrt.org/doc/howto/build to have details on how to compile a package.
   * In the minor fix release of Chaos Calmer (15.05.1) it is available as a package.   * In the minor fix release of Chaos Calmer (15.05.1) it is available as a package.
-  * In trunk (DD) or LEDE as a package (https://downloads.openwrt.org/snapshots/trunk/)+  * As a package in 15.05.1 or higher
 +  
 **bandwidthd-php** **bandwidthd-php**
-  * Available in trunk (DD) or LEDE as a package and uses php7 (php5 is not available anymore in trunk).  The PHP files found in the trunk package work fine with Chaos Calmer 15.05 or 15.05.1 with php5 (tested) and should work for php7 (not tested and php7 is not available in Chaos Calmer)+  * Available in LEDE/OpenWRT 17.01 or higher as a package and uses php7.  The PHP files found in these versions work fine with Chaos Calmer 15.05 or 15.05.1 with php5 (tested).
  
 **bandwidthd-sqlite** **bandwidthd-sqlite**
-  * Available trunk (DD) and LEDE as a package.+  * Available in LEDE/OpenWRT 17.01 or higher.
 ===== Installation ===== ===== Installation =====
  
  • Last modified: 2021/12/19 15:35
  • by jmlacroix