Commit graph

62 commits

Author SHA1 Message Date
Matteo Biscosi
af37780125 Fixes top talkers calculation (#9222)
Fixes timeseries colors
2025-06-12 11:22:41 +02:00
Matteo Biscosi
7598aebb17 Fixes missing directory 2024-02-21 14:48:47 +00:00
Matteo Biscosi
dbf4bf2a2b Removed useless imports in lua code upping the memory usage 2024-02-15 15:21:40 +00:00
Matteo Biscosi
2f76c9bf4b First code cleanup for better memory management 2024-02-15 15:21:40 +00:00
Luca Deri
3aadd4e8be Added tracings
Added details parameter to NetworkInterface::lua() and subclasses
2024-02-15 07:10:24 +01:00
Luca Deri
55870e97b9 (C) Update 2024-01-12 11:44:18 +01:00
Matteo Biscosi
8a8420e99e Fixes ntop.isshutdown function not exists 2023-10-26 13:54:29 +00:00
Luca Deri
6f2096d1cc timeseries dump changes for introducing custom callback 2022-09-28 23:49:13 +02:00
Luca
74f03c3a38 Added script tracings 2022-08-30 19:32:05 +02:00
Alfredo Cardigliano
257ece18c0 Copyright update (Lua) 2022-01-03 09:42:33 +01:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Simone Mainardi
24cf807e7b Implements batched flows iterator in callback_utils 2020-12-17 12:01:19 +01:00
emanuele-f
8abdb926cd Handle /proc/net/dev counters wrapping on 32bit platforms.
Fixes #3398
2020-02-25 16:56:58 +01:00
Simone Mainardi
0e64fd94d6 Implements deadlines for periodic and user scripts 2020-02-18 18:44:41 +01:00
Luca Deri
170bc60f19 Updated (C) 2020-01-08 23:52:51 +01:00
Simone Mainardi
d1600d0e9b Adds toggle to exclude one-way-traffic hosts from timeseries gen 2019-10-16 11:58:50 +02:00
Simone Mainardi
b4f7788dea Implements batched lua flows iterator 2019-06-25 12:52:38 +02:00
emanuele-f
956a3713dc InfluxDB export deadline 2019-06-19 11:42:14 +02:00
emanuele-f
89f6544524 Implement interface L4 stats 2019-05-22 20:11:06 +02:00
emanuele-f
229c3b13c9 Implement initial InfluxDB rollup support
Currently disabled, enable with
  redis-cli set ntopng.prefs.beta_rollup 1
2019-01-31 12:02:40 +01:00
emanuele-f
08a8c67966 Implement interface in/out stats read from proc 2019-01-10 12:35:07 +01:00
emanuele-f
af02c76c8b Implement scan detection alerts for remote hosts
Closes #2068
2018-12-14 12:28:23 +01:00
emanuele-f
2a1b30326d Move SNMP iteration function to pro 2018-12-10 18:37:46 +01:00
emanuele-f
95713ddfc6 Add driver:deleteOldData and delete old RRDs 2018-12-10 17:42:39 +01:00
emanuele-f
99a0cf0dd6 Optimize foreachLocalRRDHost for timeseries extraction 2018-10-12 14:20:27 +02:00
Simone Mainardi
df45cac64f Implements SNMP devices iterator
The iterator has the ability to stop when there is
an ntopng shutdown in progress
2018-09-12 20:01:19 +02:00
emanuele-f
a594e648c4 Generalize high resolution timeseries
In InfluxDB, 5 minutes timeseries are now written with a minimum of 1 minute resolution
2018-09-03 14:43:52 +02:00
emanuele-f
0004e08191 Add experimental support for 5sec granularity for host timeseries
To enable it (only on *InfluxDB* right now):

- uncomment HOST_NUM_TIMESERIES_POINTS in ntop_defines.h
- run `redis-cli set ntopng.prefs.30_sec_dump 1` and restart ntopng
2018-08-23 18:10:46 +02:00
emanuele-f
b2107b6f36 Move influxdb data export into driver api 2018-08-10 18:54:30 +02:00
emanuele-f
1af40bd42f Improve InfluxDB support
- Automatically create the database at startup
- Add database name option
- Add maximum retention time option
- Check InfluxDB version
2018-08-03 16:32:06 +02:00
emanuele-f
af1fc50ce6 Add preference to select the timeseries database to use 2018-07-30 12:53:55 +02:00
emanuele-f
44abcd442c Add POST timeout to prevent housekeeping from blocking indefinitely 2018-07-30 12:48:41 +02:00
Emanuele Faranda
4cbe45a948
New pro charts features and timeseries api (#1865)
* Integrate modified nvd3 library with zoom and multicharts working support

* Fix count in RRD driver

* Initial chart ajax migration

* Update nvd3 with zoom stack support

* Fix RRD listSeries with directories

* Work in progress graphs

* Compatibility fix

* Initial support for schema based api

* Add missing script

* Fix listSeries for existance check

* Implement topk timseries api

* Implement topk queries and fix labels and formats

* Migrate interface top sender and receivers

* Migrate charts to new API

* Move timeseries list for menu inside respective scripts

* Add support for extended labels

* Fix missing fields while chaning graph resolution

Also Rename drawRRD in drawGraphs

* Fix historical tabs

* Add missing time fence in influx topk

* Add graphs support for custom statistics visualization

* Initial support for graphs statistics footer

* Implement statistics in single graphs for RRD driver

* Move sampling function into the driver and fix graph statistics

* Fix max/min value offset

* Implement influxdb sampling use built-in FILL

* Implement stats and total serie in influxdb driver

* Update nvd3 with multiChart fixes

* Update nvd3 with new multiChart fixes

* RRD driver fixes

* Move metrics type from single metric to schema

* Handle ajax errors and empty data in charts

* Fix flow device interfaces graphs

* Use timeserie label as timeseries dropdown text

* Implement topk aggregation into one data serie

* ts_utils module now provides all the schemas

* Migrate ntop.exist(rrd) to ts_utils.exist

* Fix timeseries dropdown label

* L4 protos fixes for charts

* Migrate getProtoVolume to new API

* Integrate nvd3 fix for tooltip position

* Initial community graphs migration to timseries API

* Fix community timeseries dropdown and historical tabs

* Hide total serie by default

* Remove l4 protos from topk charts
2018-07-18 15:09:19 +02:00
emanuele-f
84c32d499b Implement experimental timeseries query API 2018-06-26 12:07:09 +02:00
Luca Deri
4a1c5c5696 Improved ntopng shutdown time/latency 2018-06-13 00:27:38 +02:00
Luca Deri
203404df5b Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua 2018-06-12 23:05:30 +02:00
emanuele-f
12d5e6a8bf Check influxdb export file name 2018-05-28 11:28:43 +02:00
emanuele-f
2b15b65f37 Use a single file for timeseries export 2018-05-28 10:28:26 +02:00
emanuele-f
42083f1865 Rework influxdb exporter 2018-05-25 13:52:06 +02:00
Luca Deri
7806e3caee Fixed invalid termination with pcap interfaces with multiple -i devices
Disabled debug trace
2018-04-04 21:16:22 +02:00
Luca Deri
945a9f9789 Added callback for local hosts 2018-03-27 23:38:16 +02:00
Luca Deri
b8a870b631 Experimental TS code 2018-03-24 11:37:04 +01:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
emanuele-f
1079beb244 Rename local hosts iteration function 2017-11-30 17:40:01 +01:00
emanuele-f
d350a3131f Remove json from hosts checkpoint and fix host iterator bug 2017-11-30 16:26:22 +01:00
Simone Mainardi
6d4c9dc1cc Aligns max. rrd dump time with configured heartbeat 2017-11-29 15:40:58 +01:00
Simone Mainardi
4a9c17c8dd Reworks top-talkers to greatly improve speed 2017-11-28 11:41:42 +01:00
Simone Mainardi
46439a8c02 Greatly reduces the number of open files in second.lua 2017-11-23 15:51:12 +01:00
emanuele-f
0afb961ca2 Abstract lua batched iterator 2017-11-23 13:07:51 +01:00
Luca
caaf27d5a6 Implemented batched hosts and l2-devices walk 2017-11-22 19:38:08 +01:00