diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-01-09 17:43:12 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-01-09 17:43:12 -0200 |
commit | 71af7113ef6c3ce5baf07a880585da305cf26280 (patch) | |
tree | a5170b61319441e1e8e657c5c7ab8f58de3550cc /config/ntopng | |
parent | 1b12d3669d1cb1e0b74943fc6e6fe552f6500b9e (diff) | |
parent | d4296dbbf3bcebb60096f47e902831cb4ec17dfe (diff) | |
download | pfsense-packages-71af7113ef6c3ce5baf07a880585da305cf26280.tar.gz pfsense-packages-71af7113ef6c3ce5baf07a880585da305cf26280.tar.bz2 pfsense-packages-71af7113ef6c3ce5baf07a880585da305cf26280.zip |
Merge pull request #781 from marcelloc/patch-1
Diffstat (limited to 'config/ntopng')
-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> |