Commit graph

56 commits

Author SHA1 Message Date
Luca Deri
3bf891973c Fixed termination
Added check for avoding hanging during startup when Ctrl-C is pressed and startup is not yet complete
2022-02-23 10:23:12 +01:00
Luca Deri
0ecfc089b9 Warnign fix 2022-02-22 12:12:47 +01:00
Luca Deri
31c1ec534e Implemented method for DB initialization 2022-02-22 08:34:24 +01:00
Luca Deri
1f2ab6e3c0 Cleaned up MySQL code 2022-02-22 00:20:46 +01:00
Luca Deri
58d34605fe Cleaned up MySQL code 2022-02-18 19:30:29 +01:00
Luca Deri
4d0db5c44e Fixed DB creation state
Removed test file
2022-02-15 11:15:34 +01:00
Alfredo Cardigliano
f2060f2488 Copyright update (C) 2022-01-03 09:35:09 +01:00
Luca Deri
fc6612f1d9 Added call for performing a simple MySQL query 2021-12-06 12:16:32 +01:00
Luca Deri
97fbf54d2d nEdge fixes 2021-10-26 08:21:16 +02:00
Luca Deri
f4c512d552 Code cleanup and stubs for supporting ClickHouse (via -F clickhouse) 2021-10-21 11:58:08 +02:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Alfredo Cardigliano
354866d16a Remove aggregated flows 2020-07-03 17:17:33 +02:00
Luca Deri
57e6a93065 Improved scheduling algorithm to guarantee minimum service time when number of entries allow
Updated (C)
2020-01-06 23:36:36 +01:00
Simone Mainardi
5110b1cadf Prevents certain races when no heap mem is avaiable 2019-01-29 12:31:06 +01:00
Simone Mainardi
72631b802d Adds support for IpAddress in AddressTree 2019-01-22 13:18:06 +01:00
emanuele-f
9881358bf8 Cleanup db initialization code 2019-01-16 16:44:36 +01:00
emanuele-f
5a88ee91da Rework flow exporters API
Now ElasticSearch and LogStash are bind to a NetworkInterface instance

Closes #2312
2019-01-15 12:53:21 +01:00
emanuele-f
4feb75a152 Rework flow exporter counters
Fixes #2300
2019-01-14 14:09:33 +01:00
Luca Deri
cb5a2e12dc Method template fix 2019-01-13 18:08:55 +01:00
emanuele-f
f4be144bc4 Show MySQL processlist output during shema migration
Fixes #2286
2019-01-08 20:43:09 +01:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Alfredo Cardigliano
8c93fc3ca6 Fixed export to mysql on shutdown in case of Pcap file in community mode 2018-12-28 20:00:07 +01:00
Alfredo Cardigliano
706bbf8558 Fixes missing flows on mysql after shutdown 2018-12-20 19:48:16 +01:00
Alfredo Cardigliano
479970c384 Implemented flows purging on shutdown (enabled with --shutdown-when-done only for now, it can be controlled with prefs->flushFlowsOnShutdown()), fixes #2229 2018-12-15 17:43:35 +01:00
Luca Deri
65ab40c339 Added time to aggregated flow dump 2018-10-07 17:56:33 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Luca
b350ecc7d9 Minor rework in periodic scripts
Reworked aggregated DB dump
2017-11-12 12:10:20 +01:00
Simone Mainardi
a86f3dd36e Implements DB interoperability b/w ntopng and nProbe 2017-08-11 16:51:10 +02:00
Simone Mainardi
d7b929bdc1 Implements DNS searches and reworks INFO column 2017-05-23 14:00:19 +02:00
Simone Mainardi
1b313d2932 Implements periodic flow aggregation 2017-05-09 15:07:20 +02:00
Simone Mainardi
0c1fd6071f Defines some MySQL constants 2017-04-20 16:46:01 +02:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Simone Mainardi
b6eb667890 Visualizes database processes list when the DB is not ready
Implements #891
2017-01-09 16:58:17 +01:00
Simone Mainardi
4e5d691689 Makes flow2InsertValues method public 2016-12-29 13:01:31 +01:00
Luca
f50f61f9fc MySQL DB improvements
Cached slack preference
Optimized DHCP cache read
2016-12-28 19:20:06 +01:00
Simone Mainardi
ff7c61bb9d Fixes an issue when dumping flows already partially dumped
The final dump for flows partially dumped could be, under certain
conditions, skipped. This commit addresses the issue.

Fixes #846
2016-12-21 19:44:47 +01:00
Simone Mainardi
482c2ca834 Implements counter resets
This commits adds two reset buttons to the interface page.

One button allows the reset of all interface counters, namely,
packets and bytes received, packets dropped, and the number of
flows exported and dropped (when mysql or elasticsearch is enabled).

The other button allows the reset of only the drops.
2016-12-21 12:48:04 +01:00
Simone Mainardi
e1b20e5f9b MySQLDB::flow2InsertValues returns flow len 2016-12-19 15:34:06 +01:00
Simone Mainardi
eb0c10a8dd Adds periodic MySQL flush method 2016-12-16 18:53:59 +01:00
Simone Mainardi
5ded07f5a8 Adds code for batched mysql insertions 2016-12-15 22:53:23 +01:00
Simone Mainardi
449c718208 Generalizes Mysql insert into inside defines 2016-12-15 22:53:22 +01:00
Simone Mainardi
bca1e0a126 Implements MySQL flow export statistics 2016-08-29 09:41:55 +02:00
Simone Mainardi
e8707bcaa9 Implements counters for export dropped flows (wip)
ntopng optionally exports flows to MySQL or ES. This change
keeps track of possible drops (e.g., due to a slow mysql server)
and shows them to the user.
2016-08-26 19:27:46 +02:00
Simone Mainardi
a51994cfec Implements asynchronous database schema updates
Database updates are now performed asynchronously.
The web server starts but notifies the user with a
'please wait' message until the updates are completed.
2016-07-04 19:37:44 +02:00
Luca Deri
fac51e9fca Reworked MySQL interface 2016-03-26 22:52:54 +01:00
Simone Mainardi
c5c1a062f6 Implements MySQL batch flow insertions 2016-03-22 15:46:19 +01:00
Simone Mainardi
165be14dfd Makes the maximum number of rows retrieved from MySQL configurable
The limit in the number of rows that can be retrieved from MySQL
has been made configurable. This is useful especially when downloading
historical flows in txt format.
2016-02-19 20:14:29 +01:00
Luca Deri
2915d89a24 Implemented asynchronous MySQL queries so that ntopng should be more responsive on large networks with MySQL database enabled 2016-02-09 16:10:39 +01:00
Luca Deri
d7c452f0a3 Moved to 2016 2016-01-01 09:27:39 +01:00
Luca Deri
631d54781e MySQL/MariaDB is now compulsory to compile ntopng 2015-10-16 14:56:01 +02:00