From e80908b4eea1de01e79a7790fae2912e6a9c9619 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 2 Oct 2012 17:45:46 +0545 Subject: Fix inconsistent field names --- config/bandwidthd/bandwidthd.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/bandwidthd') diff --git a/config/bandwidthd/bandwidthd.inc b/config/bandwidthd/bandwidthd.inc index 79187e40..69724a96 100644 --- a/config/bandwidthd/bandwidthd.inc +++ b/config/bandwidthd/bandwidthd.inc @@ -60,12 +60,15 @@ function bandwidthd_install_config() { config_lock(); /* user defined values */ - $meta_refresh = $config['installedpackages']['bandwidthd']['config'][0]['metarefresh']; + $meta_refresh = $config['installedpackages']['bandwidthd']['config'][0]['meta_refresh']; if($meta_refresh) $meta_refresh = "meta_refresh $meta_refresh\n"; - $graph = $config['installedpackages']['bandwidthd']['config'][0]['graph']; + $graph = $config['installedpackages']['bandwidthd']['config'][0]['drawgraphs']; if($graph) $graph = "graph true\n"; + else + $graph = "graph false\n"; + $filter_text = $config['installedpackages']['bandwidthd']['config'][0]['filter']; if($filter_text) $filter_text = "filter $filter_text\n"; -- cgit v1.2.3 From edef29a6f336a316d84b396938d84328c22f545b Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 2 Oct 2012 17:47:48 +0545 Subject: Fix inconsistent field names and default values, and some field description text. --- config/bandwidthd/bandwidthd.xml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'config/bandwidthd') diff --git a/config/bandwidthd/bandwidthd.xml b/config/bandwidthd/bandwidthd.xml index 6a3dab35..258772a7 100644 --- a/config/bandwidthd/bandwidthd.xml +++ b/config/bandwidthd/bandwidthd.xml @@ -80,7 +80,7 @@ - interface + Interface active_interface The interface that bandwidthd will bind to. interfaces_selection @@ -88,27 +88,25 @@ lan - Subnet - subnets_custom - The subnet(s) on which bandwidthd will report. (separate with ';' for multiple subnets, e.g. 192.168.1.0/24;10.0.0.0/24) - input + Subnet + subnets_custom + The subnet(s) on which bandwidthd will report. (separate with ';' for multiple subnets, e.g. 192.168.1.0/24;10.0.0.0/24) The ordinary subnet for the selected interface/s is automatically put in the config, do not specify it here. + input Skip intervals skipintervals - + Number of intervals (2.5 minute) to skip between graphing. Default 0. input - 1024 Graph cutoff graphcutoff - Graph cutoff is how many KB must be transferred by an IP before it is graphed + Graph cutoff is how many KB must be transferred by an IP before it is graphed. Default 1024. input - 1024 - promiscuous + Promiscuous promiscuous Put interface in promiscuous mode to score to traffic that may not be routing through the host machine. checkbox @@ -126,25 +124,23 @@ checkbox - filter + Filter filter Libpcap format filter string used to control what bandwidthd sees. Please always include "ip" in the string to avoid strange problems. input - ip Draw Graphs drawgraphs This defaults to true to graph the traffic bandwidthd is recording. Set this to false if you only want cdf output or you are using the database output option. Bandwidthd will use very little RAM and CPU if this is set to false. checkbox - checked + on Meta Refresh meta_refresh Set META REFRESH seconds (default 150, use 0 to disable). input - 150 -- cgit v1.2.3