Commit graph

23 commits

Author SHA1 Message Date
Simone Mainardi
08622e8f18 Implements MySQL Top Talkers Retrieval and Visualization
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.
2016-02-08 21:35:27 +01:00
Simone Mainardi
e1e0e9cab0 Slices historical application data via MySQL
MySQL engine is leveraged to slice and order historical
data.
2016-02-07 14:32:46 +01:00
Simone Mainardi
25ee0d5c11 Implements Top Talkers and Top Applications In Time Range
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.
2016-02-06 18:11:31 +01:00
Simone Mainardi
418f48e714 Adds JSON endpoints to retrieve top talkers data 2016-02-01 22:14:28 +01:00
Simone Mainardi
064be1b125 Adds Top L7 Protocols lua function
A Lua function that queries MySQL to retrieve
historical L7 protocols has been added.
2016-01-05 19:22:02 +01:00
Simone Mainardi
ec301ace49 Extends top peers to IPv6 2016-01-05 18:57:45 +01:00
Simone Mainardi
47668a0cac Adds Top Peers Lua function
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
2016-01-05 18:40:27 +01:00
Simone Mainardi
2045df7053 Reworks MySQL queries according to the new schema 2015-12-07 18:39:35 +01:00
Simone Mainardi
0c92e286d4 Reworks MySQL structure and adds interface support to dumped flows
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.
2015-12-07 17:20:12 +01:00
Simone Mainardi
2228a8529c Adds ntopng instance name (#283)
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.
2015-12-07 15:32:00 +01:00
Simone Mainardi
1ba346fc46 Visualises traffic profile information on historical tables
Traffic profile is queried from the database and possibly
shown as an extra field in the INFO column for historical data
2015-11-26 17:10:35 +01:00
Simone Mainardi
71b390ec47 Adds MySQL support for traffic profiles
Traffic profile information is dumped to MySQL.
2015-11-10 11:36:55 +01:00
Luca Deri
b0e53d8191 Fixed bug in DB flow filtering 2015-10-10 11:15:35 +02:00
Luca Deri
29513c466b Removed unused StatsManager methods
Removed unused get_real_epochs.lua
2015-10-01 23:36:16 +02:00
Luca Deri
988085dd2a Removed debug messages 2015-09-26 10:17:42 +02:00
Luca Deri
2767caa991 Added in preferences the ability to specify the MySQL data retention 2015-09-22 23:32:39 +02:00
Luca Deri
a62344d45c Added field INFO to MySQL flows.
If you update the code, you need to drop or modify the MySQL database format.
2015-09-22 22:37:11 +02:00
Luca Deri
f954a6f2d0 Fixed SQL query 2015-09-15 10:06:15 +02:00
Luca Deri
4bf10f4fce Added user role in About page
Fixed SQL when exploring subnets
Modified preferences to specify that when nDPI RRDs are created, they do for both local hosts and networks
2015-09-14 14:16:11 +02:00
Luca Deri
dfe98e6a69 Improved flow search 2015-08-24 23:44:06 +02:00
Luca Deri
ee65e5f143 Historical flow enhancements for queries 2015-08-19 00:16:28 +02:00
Luca Deri
4945f5c902 Added ability to navigate IPv4 and IPv6 flows 2015-08-16 23:44:01 +02:00
Luca Deri
a16ca6600d Added DB utils 2015-08-16 19:36:45 +02:00