germamouse.blogg.se

Bandwidth monitoring tool openwrt
Bandwidth monitoring tool openwrt







Afterwards, you will get a file and directory structure on your external mount like ls -la /mnt/usb/bandwidthd/ĭrwxr-xr-x 3 root root 1024 Aug 25 12:21. Option SQLite_filename "/path/to/file.db" # file gets created automatically and default path works pretty wellĪfter modifying both of the files, restart the service. You need to change “option output_cdf true” and “option recover_cdf true” and “option sqlite_filename 'file.db' ” To keep statistics it is needed to modify “/etc/config/bandwidthd”. The default bandwidthd installation loses your previous statistics on each reboot and you need more space to save those. Option sqlite_dbname “/www/bandwidthd/stats.db” Usage Default is 'bandwidthd'.Ī /etc/config/bandwidthd-php for bandwidthd-sqlite will have the same structure, but the options host, user and dbname are not needed and are replaced by the following: Option dbname: This is the name of the postgresql database. Option user: This is the user owning the postgresql database. The default is '127.0.0.1' which is the router. Option host: This is for the host that has the postgresql database. Options are: INT_DAILY, INT_WEEKLY, INT_MONTHLY and INT_YEARLY. Option dflt_interval: Defaultinterval for the graphs. Option dflt_height: height of the graphs generated. Option dflt_width: Widthd of the graphs generated. Here are the options of the /etc/config/bandwidthd-php configuration file: NOTE: the bandwidthd-sqlite package does not provide the /etc/config/bandwidthd-php file: it is not needed as the init file ( /etc/init.d/bandwidthd) will provide the bandwidthd application the default graph sizes (900 and 256) and interval (INT_DAILY) and the default sqlite database: /Create a /etc/config/bandwidthd-php file for bandwidthd-sqlite if you need to change the default. Package bandwidthd-sqlite can also use the bandwidthd-php configuration file ( bandwidthd-sqlite uses two configuration files: /etc/config/bandwidthd and /etc/config/bandwith-php). Default is “/The package bandwidthd-php uses another configuration file: /etc/config/bandwidthd-php. Option sqlite_filename: Only used for bandwidthd-sqlite. Default is “openwrt” for bandwidthd-pgsql. It can be anything you want for bandwidthd-pgsql but it has to be “default” for bandwidthd-sqlite. Option sensor_id: Used for bandwidthd-pgsql and bandwidthd-sqlite. The default is “user = postgres dbname = bandwidthd host = 192.168.1.1”. Option pgsql_connect_string: Only used for bandwidthd-pgsql. Option meta_refresh: Set META REFRESH seconds (default 150, use 0 to disable). Bandwidthd will use very little ram and cpu if this is set to false. Usually set this to false if you only want cdf output or you are using the database output option ( bandwidthd-pgsql or bandwidthd-sqlite). Option graph: Draw Graphs - This default to true to graph the traffic bandwidthd is recording. Please always include “ip” in the string to avoid strange problems. Option filter: Libpcap format filter string used to control what bandwidthd see's. Option recover_cdf: Read back the cdf file on startup. The cdf files can be read when bandwidthd is started (see the option recover_cdf), which is useful if you reboot the router to recover the bandwidth data. These files are located on the root of the router (/). These are only useful if you are using the bandwidthd package as the other packages ( bandwidthd-pgsql and bandwidthd-sqlite) can store the data in a database. Option output_cdf: Log data to cdf file log.cdf. Option promiscuous: Put interface in promiscuous mode to score to traffic that may not be routing through the host machine. Option graph_cutoff: Graph cutoff is how many k must be transferred by an ip before we bother to graph it. Option skip_intervals: An interval is 2.5 minutes, this is how many intervals to skip before doing a graphing run. Traffic that matches none of these subnets will be ignored. Option subnets: Subnets to collect statistics on. The options are the same for the 3 packages, with two additional for bandwidthd-pgsql and two others for bandwidthd-sqlite. Packages bandwidth, bandwidthd-pgsql and bandwidthd-sqlite use basically the same configuration file: /etc/config/bandwidthdĮach package installs the proper configuration file, and usually requires very little modifications, if any.









Bandwidth monitoring tool openwrt