Overal Top Talkers are retrieved with just one single
MySQL query and include both ipv4 and ipv4. Top talkers
can be visualized on a per-interface and per-host basis,
and can be sliced and diced.
Traffic policies can now be setup for custom networks and not only
local networks.
Sanity checks on network CIDR and VLAN numbers have been introduced.
A minor bug that prevented per-host traffic policies to be populated has been fixed as well.
Top Talkers and Top applications can be retrieved via MySQL
both interface-wide and per-host. A couple of tabs, namely
"Top Talkers" and "Top Applications" become available in the
historical page of interfaces and hosts. Upon focus of each
tab, an ajax request is triggered and data is fetched from MySQL.
TODO: interface wide top-talkers are retrieved from sqlite and
need to be moved to mysql.
A Lua function that queries MySQL
to retrieve top peers (given an host) has been added.
This function is used inside ntopng professional
database explorer
The following error has been fixed:
28/Dec/2015 11:40:02 [Lua.cpp:4447] WARNING: Script failure [/Users/simone/code/ntopng/scripts/callbacks/minute.lua][...s/simone/code/ntopng/scripts/lua/modules/top_talkers.lua:221: table index is nil]
Existing MySQL naming convention makes two separate tables for each interface monitored. Table names are flows4_<ifid> and flows6_<ifid>. Ifid is a unique integer identifier chosen by ntopng.
Present commit simplifies this structure and make just two tables, namely flows4 and flows6, and add an extra column to store the interface names. I do not think that storing the integer interface id is good: it is just a number that only make sense inside ntopng. Using interface names would yield more (re)usable data.
Committed code transparently migrates old tables into the new ones. Old flows are migrated into the new tables, and old tables are dropped.
ntopng instance name can be specified using command line parameter
--instance-name. If no parameter is specified, instance name defaults
to the current host name.
this information is exported to MySQL and ES.
Multiple commits have been squashed here:
- Adds alert configuration page for local networks
- Cleans unused branch
- Adds alert settings for local networks
- Implements alerts for networks
RRD graphs for interface views are more clear when their layout is stacked.
In this commit lua function singlerrd2json is made more general. An additional
input parameters allows the user to toggle interface names from labels.
By default, interface names are not shown.