Commit graph

60 commits

Author SHA1 Message Date
Alfredo Cardigliano
904c2cec7c Add Lua call interface.clickhouseArchiveData(begin, end) (testing) 2025-07-25 19:39:13 +02:00
Alfredo Cardigliano
3b4706e441 Remove AlertStore. SQLiteAlertStore is not SQLiteDB which is using DB as superclass. 2025-06-18 14:54:55 +02:00
Alfredo Cardigliano
5379bd12d6 Rework dump with views: flows are dumped by all viewed interfaces in parallel, while queries are on view 2025-06-17 18:17:13 +02:00
Alfredo Cardigliano
340641f6c4 Add comments 2025-06-17 09:27:06 +02:00
Alfredo Cardigliano
a517019d21 More flow-id to Ntop. Cleanup execSQLQuery API. 2025-06-12 11:43:00 +02:00
Alfredo Cardigliano
a527c19bda Update db_result_row_callback prototype. Cleanup old mysql defines. 2025-06-10 15:40:23 +02:00
Alfredo Cardigliano
6f9d7cd14f Major code rework to fully use the clickhouse API in place of Mysql 2025-06-09 15:33:57 +02:00
Alfredo Cardigliano
4331e3ad3a Cleanup MySQL/CH code. Improve error reporting. 2025-05-30 10:05:58 +02:00
Alfredo Cardigliano
6fb4cdc448 Use methods override 2025-05-28 11:01:55 +02:00
Luca Deri
3c158cfe82 Reworked flow dump with view interfaces 2025-05-16 22:37:14 +02:00
Alfredo Cardigliano
9352d0cdcd Update copyright 2025-01-02 09:09:56 +01:00
Alfredo Cardigliano
3d83532812 Add ClickHouseInterface (WIP) 2024-07-05 16:27:53 +00:00
Luca Deri
55870e97b9 (C) Update 2024-01-12 11:44:18 +01:00
lucaderi
d395deac4e Automated commit of clang-format CI changes. 2023-04-07 14:20:44 +00:00
Luca Deri
f726b867c7 Updated (C) 2023-01-01 16:37:57 +01:00
Luca Deri
6a221d1fdd Fixes #6814 2022-09-22 11:50:02 +02:00
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
31c1ec534e Implemented method for DB initialization 2022-02-22 08:34:24 +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
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
Simone Mainardi
6e0c369fa9 Handles flow dump queues in view interfaces - and fixes races 2020-09-25 14:10:06 +02:00
Alfredo Cardigliano
0fb6f9472f Direct flow dump improbements and debug counters 2020-09-15 18:13:24 +02:00
Alfredo Cardigliano
1693c21ed7 Implement direct flow dump (testing) 2020-09-15 15:21:41 +02:00
Alfredo Cardigliano
f1ff3e89ea Add -F nindex;direct to enable direct dump 2020-09-15 01:31:57 +02:00
Alfredo Cardigliano
354866d16a Remove aggregated flows 2020-07-03 17:17:33 +02:00
Simone Mainardi
b54b3fec7e Reworks flows dump to avoid delays in ht_stats_update
Fixes #3419
2020-02-14 16:13:59 +01:00
Simone Mainardi
f7d79e50f9 Implements anti stall when dumping flows (MySQL, nIndex, ES, ...)
Implements #3411
2020-02-13 11:36:48 +01:00
Simone Mainardi
37975c1710 Fixes crashes with MySQL due to concurrency issues
Fixes #3381
2020-02-05 11:51:44 +01: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
72631b802d Adds support for IpAddress in AddressTree 2019-01-22 13:18:06 +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
Simone Mainardi
fee0fe29a6 Handles Top-X aggregated flows 2019-01-11 13:54:30 +01:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +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
Simone Mainardi
cd6c7c4338 Adds SQL queries log performed from Lua 2018-08-13 19:27:00 +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
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
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
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