From 7868071344a84a70c88d39cdd8de159ba82db782 Mon Sep 17 00:00:00 2001 From: Cino Date: Wed, 7 Jan 2015 20:30:49 -0500 Subject: ntopng - add checkbox to enable historical data storage add checkbox to enable historical data storage ntopng Command Line Options: --dump-flows | -F Dump expired flows. If ntopng is compiled with sqlite support, flows can dumped persistently on disk using this option. Databases are created daily under /db. https://forum.pfsense.org/index.php?topic=80461.msg473467#msg473467 --- config/ntopng/ntopng.xml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'config/ntopng') diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml index 45b68bdc..82999978 100644 --- a/config/ntopng/ntopng.xml +++ b/config/ntopng/ntopng.xml @@ -118,6 +118,12 @@ + + Historical Data Storage + dump_flows + Turn historical data storages on + checkbox + = 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 -s -e {$dump_flows} {$ifaces} {$dns_mode} {$aggregations} {$local_networks} &"; write_rcfile(array( "file" => "ntopng.sh", "start" => $start, @@ -238,4 +249,4 @@ } ]]> - \ No newline at end of file + -- cgit v1.2.3 From e0d0d5a32d05ac59d7b5efaf77eefd0b5bf28995 Mon Sep 17 00:00:00 2001 From: Cino Date: Wed, 7 Jan 2015 20:39:20 -0500 Subject: ntop - change location of database and pid changed database/pid location to /var/db/ntopng and /var/run/ntopng.pid It was defaulting to /var/tmp/ntopng -d /var/db/ntopng -G /var/run/ntopng.pid --- config/ntopng/ntopng.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/ntopng') diff --git a/config/ntopng/ntopng.xml b/config/ntopng/ntopng.xml index 82999978..b656e483 100644 --- a/config/ntopng/ntopng.xml +++ b/config/ntopng/ntopng.xml @@ -199,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 {$dump_flows} {$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, -- cgit v1.2.3