Add option to disable unwanted host timeseries

This commit is contained in:
emanuele-f 2020-02-27 18:09:18 +01:00
parent 82a01c521a
commit 2dbdc13ec6
5 changed files with 19 additions and 6 deletions

View file

@ -1132,11 +1132,18 @@ function printStatsTimeseries()
field = "toggle_local_hosts_traffic_rrd_creation",
default = "1",
pref = "host_rrd_creation",
to_switch = {"row_hosts_ndpi_timeseries_creation"},
to_switch = {"row_hosts_ndpi_timeseries_creation", "row_toggle_local_hosts_stats_rrd_creation"},
})
local showElement = ntop.getPref("ntopng.prefs.host_rrd_creation") == "1"
prefsToggleButton(subpage_active, {
field = "toggle_local_hosts_stats_rrd_creation",
default = "1",
pref = "host_stats_timeseries_creation",
hidden = not showElement,
})
retVal = multipleTableButtonPrefs(subpage_active.entries["toggle_ndpi_timeseries_creation"].title,
subpage_active.entries["toggle_ndpi_timeseries_creation"].description,
l7_rrd_labels, l7_rrd_values,