mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added in preferences the ability to specify the MySQL data retention
This commit is contained in:
parent
a62344d45c
commit
2767caa991
4 changed files with 43 additions and 11 deletions
|
|
@ -47,6 +47,13 @@ if(haveAdminPrivileges()) then
|
|||
"to keep application protocol statistics at the cost of using more disk space.",
|
||||
"On", "1", "success", "Off", "0", "danger", "toggle_local_ndpi", "ntopng.prefs.host_ndpi_rrd_creation")
|
||||
|
||||
-- ================================================================================
|
||||
print('<tr><th colspan=2 class="info">MySQL Database</th></tr>')
|
||||
|
||||
mysql_retention = ntop.getCache("ntopng.prefs.mysql_retention")
|
||||
if((mysql_retention == nil) or (mysql_retention == "")) then mysql_retention = "30" end
|
||||
prefsInputField("Data Retention", "Duration in days of data retention in the MySQL database. Default: 30 days", "mysql_retention", mysql_retention)
|
||||
|
||||
-- ================================================================================
|
||||
print('<tr><th colspan=2 class="info">Alerts</th></tr>')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue