Implement bytes and ndpi stats for ASN

This commit is contained in:
emanuele-f 2017-03-24 17:48:52 +01:00
parent f052248ac2
commit b8c4145fcd
7 changed files with 121 additions and 5 deletions

View file

@ -585,12 +585,12 @@ function printStatsRrds()
print('<tr><th colspan=2 class="info">Timeseries</th></tr>')
toggleTableButtonPrefs("Traffic",
"Toggle the creation of bytes and packets timeseries for local hosts, defined local networks and autonomous systems.<br>"..
"Toggle the creation of bytes and packets timeseries for local hosts and defined local networks.<br>"..
"Turn it off to save storage space.",
"On", "1", "success", "Off", "0", "danger", "toggle_local", "ntopng.prefs.host_rrd_creation", "1")
toggleTableButtonPrefs("Layer-7 Application",
"Toggle the creation of application protocols timeseries for local hosts, defined local networks and autonomous systems.<br>"..
"Toggle the creation of application protocols timeseries for local hosts and defined local networks.<br>"..
"Turn it off to save storage space.",
"On", "1", "success", "Off", "0", "danger", "toggle_local_ndpi", "ntopng.prefs.host_ndpi_rrd_creation", "0")
@ -623,6 +623,11 @@ function printStatsRrds()
"On", "1", "success", "Off", "0", "danger", "toggle_pools_rrds", "ntopng.prefs.host_pools_rrd_creation", "0")
end
toggleTableButtonPrefs("Autonomous Systems",
"Toggle the creation of bytes and application timeseries for autonomous systems.<br>",
"On", "1", "success", "Off", "0", "danger", "toggle_asn_rrds",
"ntopng.prefs.asn_rrd_creation", "0")
toggleTableButtonPrefs("Categories",
"Toggle the creation of categories timeseries for local hosts and defined local networks.<br>"..
"Enabling their creation allows you "..