diff options
author | jim-p <jimp@pfsense.org> | 2015-01-08 08:30:58 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-01-08 08:30:58 -0500 |
commit | 4510e208048adb9cc517000388e46b433ae8f23e (patch) | |
tree | 7cfb1492e6fae09f303a4d07d3ec456230e169d5 /config | |
parent | 1b12d3669d1cb1e0b74943fc6e6fe552f6500b9e (diff) | |
parent | 782aaa0d534cf731b5a92d6889f8f7ab69188025 (diff) | |
download | pfsense-packages-4510e208048adb9cc517000388e46b433ae8f23e.tar.gz pfsense-packages-4510e208048adb9cc517000388e46b433ae8f23e.tar.bz2 pfsense-packages-4510e208048adb9cc517000388e46b433ae8f23e.zip |
Merge pull request #771 from CinoNY/master
Diffstat (limited to 'config')
-rw-r--r-- | config/ntopng/ntopng.xml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml index 45b68bdc..b656e483 100644 --- a/config/ntopng/ntopng.xml +++ b/config/ntopng/ntopng.xml @@ -118,6 +118,12 @@ <option><value>lanonly</value><name>Consider only LAN interface local</name></option> </options> </field> + <field> + <fielddescr>Historical Data Storage</fielddescr> + <fieldname>dump_flows</fieldname> + <description>Turn historical data storages on</description> + <type>checkbox</type> + </field> </fields> <custom_php_global_functions> <![CDATA[ @@ -175,6 +181,11 @@ break; } + // Historical Data Storage, Dump expired flows + if ($ntopng_config['dump_flows'] >= on) { + $dump_flows = "-F"; + } + $pf_version=substr(trim(file_get_contents("/etc/version")),0,3); if ($pf_version >= 2.2) { $redis_path = "/usr/pbi/ntopng-" . php_uname("m") . "/local/bin"; @@ -188,7 +199,7 @@ // Add support for --data-dir /somewhere, --httpdocs-dir /somewhereelse, // --dump-timeline (on/off) --http-port, --https-port - $start .= "\t/usr/local/bin/ntopng -s -e {$ifaces} {$dns_mode} {$aggregations} {$local_networks} &"; + $start .= "\t/usr/local/bin/ntopng -d /var/db/ntopng -G /var/run/ntopng.pid -s -e {$dump_flows} {$ifaces} {$dns_mode} {$aggregations} {$local_networks} &"; write_rcfile(array( "file" => "ntopng.sh", "start" => $start, @@ -238,4 +249,4 @@ } ]]> </custom_php_validation_command> -</packagegui>
\ No newline at end of file +</packagegui> |