aboutsummaryrefslogtreecommitdiffstats
path: root/config/ntopng/ntopng.xml
diff options
context:
space:
mode:
authorCino <cinony@gmail.com>2015-01-07 20:30:49 -0500
committerCino <cinony@gmail.com>2015-01-07 20:30:49 -0500
commit7868071344a84a70c88d39cdd8de159ba82db782 (patch)
treeea51b053e554de8b4ed7984cb87adc58eb8ff984 /config/ntopng/ntopng.xml
parent1b12d3669d1cb1e0b74943fc6e6fe552f6500b9e (diff)
downloadpfsense-packages-7868071344a84a70c88d39cdd8de159ba82db782.tar.gz
pfsense-packages-7868071344a84a70c88d39cdd8de159ba82db782.tar.bz2
pfsense-packages-7868071344a84a70c88d39cdd8de159ba82db782.zip
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
Diffstat (limited to 'config/ntopng/ntopng.xml')
-rw-r--r--config/ntopng/ntopng.xml15
1 files changed, 13 insertions, 2 deletions
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 @@
<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 -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>