Commit graph

72 commits

Author SHA1 Message Date
Luca Deri
189c2bb739 Cleaned up DB detention scripts 2022-01-26 12:02:32 +01:00
Alfredo Cardigliano
257ece18c0 Copyright update (Lua) 2022-01-03 09:42:33 +01:00
Luca Deri
fb36abecd3 Fixed [LuaEngine.cpp:601] WARNING Script failure [/usr/share/ntopng/scripts/callbacks/daily/system/db_retention.lua][attempt to index a nil value] 2021-12-29 15:05:40 +01:00
Simone Mainardi
cf256c8a18 Removes hardcoded ClickHouse database name in delete queries
Addresses #6030
2021-11-30 18:30:47 +01:00
Simone Mainardi
37fe090a28 Implements Clickhouse retention using partitioned alert tables
Addresses #6030
2021-11-11 12:28:41 +01:00
Simone Mainardi
94a970f626 Adds Clickhouse support to delete flows upon deleting interface data 2021-11-10 14:29:06 +01:00
Simone Mainardi
62ee3437af Performs Clickhouse old data cleanup in the system daily callback
Addresses #6030
2021-11-10 14:16:05 +01:00
Simone Mainardi
3b4b5078fe Implements Clickhouse retention using partitions
Addresses #6030
2021-11-10 10:18:20 +01:00
Simone Mainardi
820e497253 Unifies epoch-related variables in Lua and JS 2021-07-30 15:38:06 +02:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Alfredo Cardigliano
50099f8b89 Cleanup aggregated flows configuration (deprecated) 2020-09-21 23:20:14 +02:00
Alfredo Cardigliano
354866d16a Remove aggregated flows 2020-07-03 17:17:33 +02:00
Alfredo Cardigliano
2425134f05 Replace isEnterprise with isEnterpriseM 2020-04-02 12:36:34 +00:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
Simone Mainardi
98edcce20d Fixes invalid l4 protocol columns in sql queries
Fixes #3142
2019-12-23 10:39:28 +01:00
Simone Mainardi
bd27304c54 Implements data cleanup for inactive interfaces
Implements #1971
2018-09-07 15:55:14 +02:00
Simone Mainardi
b5f96cf86a Implements allowed networks for database flows
Implements #1886
2018-08-07 19:38:05 +02:00
Simone Mainardi
bef7e7bf2e Fixes MySQL flow idx for nprobe databases 2018-03-02 11:00:22 +01:00
Simone Mainardi
46439a8c02 Greatly reduces the number of open files in second.lua 2017-11-23 15:51:12 +01:00
Simone Mainardi
1c9b5a0ea0 Removes unused checkOpenFiles function 2017-10-03 16:52:37 +02:00
Simone Mainardi
990915f3b3 Handles VLANs and traffic profiles in db queries
Fixes #1320
Fixes #946
2017-07-25 18:52:56 +02:00
Simone Mainardi
d7b929bdc1 Implements DNS searches and reworks INFO column 2017-05-23 14:00:19 +02:00
emanuele-f
0e66f642a0 Fix alerts counter bug when alerts are disabled and re-enabled.
Steps to reproduce the original issue:
1) alerts are enabled and counter is positive
2) the user disables the alerts from preferences
3) ntopng is stopped, then restarted
4) the user enables the alerts from preferences, but num_alerts_engaged was 0
5) a release of an alert now makes the counter wrap
2017-05-17 11:47:10 +02:00
Simone Mainardi
ffd45a6e41 Reworks Historical Flow Explorer UI to query on aggregated flows tables 2017-05-10 12:54:24 +02:00
Simone Mainardi
5416dcd711 Implements DB queries on the aggregated data (WIP) 2017-05-09 18:56:55 +02:00
emanuele-f
d6469510ee Add startup alert engine and use it for MYSQL open files limit check 2017-04-26 18:12:40 +02:00
Josh Soref
78e78c018c Fixes spellings and typos
Thank goes to
Josh Soref <jsoref@users.noreply.github.com>
2017-03-06 17:54:48 +01:00
Emanuele Faranda
2a843966da Add alias and device type columns to host pools (#953)
* Add alias and device type columns to host pools

* Add host pool members links when available

* Add host pool links

* Implement host pool members pagination

* Host Pools GUI fixes and improvements

* Remove hardcoded columns number

* Host Pools GUI fixes

* Remove debug print
2017-01-27 17:48:58 +01:00
Simone Mainardi
413e22e889 Implements CIDR search in flow explorer
partially implements #574
2016-12-20 15:32:52 +01:00
Simone Mainardi
758db35671 Implements MySQL open_files_limit check
ntopng checks MySQL for the value of open_files_limit and engages
and alert if the worst case number of open files is greater
than or equal to the 80% of open_files_limit
2016-12-09 17:14:25 +01:00
Simone Mainardi
926a57f658 Executes db explorer queires automatically on user click
Clicking on flow details (e.g., protocol or src or dst)
automatically redirects the user to the db explorer page
and preserves selection details (pro version).
2016-07-12 17:02:14 +02:00
Simone Mainardi
96e964b14e Adds IN_ and OUT_BYTES to historical flows tables 2016-06-15 15:57:37 +02:00
Simone Mainardi
e12c703464 Implements IN_BYTES / OUT_BYTES for historical protocols 2016-05-24 11:57:12 +02:00
Simone Mainardi
9953cc2328 Implements IN_BYTES/OUT_BYTES in historical data
MySQL schema change has been implemented together with
new historical talkers.
TODO: historical protocols.
2016-05-24 11:08:11 +02:00
Simone Mainardi
d46a5b8b5e Refactors historical labels and code to improve readability 2016-04-15 17:05:28 +02:00
Simone Mainardi
3c0022197e Adds a flow inspector to the historical top talkers 2016-04-14 15:24:38 +02:00
Simone Mainardi
66513dc093 fixes a MySQL query error on unknown field 2016-04-14 11:04:24 +02:00
Simone Mainardi
fdaf16a7ef Implements bi-directional HTTP reqs/resps rates 2016-04-08 15:52:56 +02:00
Simone Mainardi
90ffa1eb10 Removes a debug print 2016-04-04 19:40:55 +02:00
Simone Mainardi
870a08a568 Adds ports, l4 and l7 protocols to historical talkers drill-down 2016-04-04 19:38:57 +02:00
Simone Mainardi
ba5b7a08f7 Extendends direction breakdown for l7 protocols 2016-04-04 16:44:32 +02:00
Simone Mainardi
7f983c3b14 Adds direction breakdown for historical top talkers 2016-04-04 16:01:17 +02:00
Simone Mainardi
2754c2dfa1 Stores integer interface ids into MySQL
Interface flows are now stored using integer interface ids rather
than interface names. This speeds up queries.
A migration code has also been introduced so that old MySQL table
format is migrated and old data does not get lost.

This also fixes #460
2016-03-25 19:58:00 +01:00
Luca Deri
924939c8f2 Added fix for catching MySQL errors 2016-03-19 15:04:18 +01:00
Simone Mainardi
a8f19cc45a Adds and extra check for a nil value 2016-02-20 14:27:40 +01:00
Simone Mainardi
5ab74fda10 Adds Flows download buttons and paginations
Hisotrical flows can be downloaded via two buttons
available inthe IPv4 and IPv6 pages. They can also be
browsed with pagination.
2016-02-19 20:16:48 +01:00
Simone Mainardi
aa592508d3 Uniforms return values for Lua functions that query MySQL
Lua function that query MySQL return an empty lua table
not only in case of an empty record set, but also in case of error.
This prevents upstream iterations over nil values.
2016-02-15 21:48:50 +01:00
Simone Mainardi
5f4eee79a3 Implements L7 application statistics drill-down
L7 Statistics can be drilled-down starting at the interface
or at the host level.
2016-02-12 18:49:03 +01:00
Simone Mainardi
9979d72707 Adds Flow Duration Computation in MySQL queries 2016-02-09 21:12:09 +01:00
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