Commit graph

152 commits

Author SHA1 Message Date
Simone Mainardi
0e64fd94d6 Implements deadlines for periodic and user scripts 2020-02-18 18:44:41 +01:00
Alfredo Cardigliano
55b1ca75a9 Replace anomalous with misbehaving to avoid inconsistencies (fix #2866) 2020-01-14 15:49:19 +01:00
emanuele-f
e978a83151 Improve user scripts charts
Fixes #3020
2019-10-31 13:30:24 +01:00
emanuele-f
34c196d99e User scripts stats improvements 2019-10-30 10:53:54 +01:00
emanuele-f
58a12f1241 Add user scripts benchmark charts
Implements #2999
2019-10-24 20:24:13 +02:00
emanuele-f
0d04eb2d5c Stop writing points if InfluxDB export is failing.
The dropped points are accounted and shown in the gui. Dropped points alert are generated as usual.

Fixes #2998
2019-10-24 16:09:01 +02:00
Simone Mainardi
d1600d0e9b Adds toggle to exclude one-way-traffic hosts from timeseries gen 2019-10-16 11:58:50 +02:00
emanuele-f
90cadaf560 Fix periodic scripts being called every minute with hasHighResolutionTs 2019-10-15 11:18:00 +02:00
Simone Mainardi
b258f45858 Fixes deletion of old alerts when above a certain threshold 2019-10-14 18:03:16 +02:00
emanuele-f
ffd3b4c1ee Users scripts api changes and initial documentation 2019-10-09 15:12:28 +02:00
emanuele-f
ede9a7940a Generalize periodic and flows callbacks
Now periodic callbacks are properly called even when alerts are disabled
The granularity filter and check_function has been replaced with a more generic hooks list
2019-10-07 19:05:43 +02:00
emanuele-f
69cd896a9f Implement engaged alerts and flow alerts timeseries 2019-08-21 16:57:14 +02:00
emanuele-f
2b2a74af79 Fix bad time resolution of values for some host exported timeseries
- active_flows.as_client
- active_flows.as_server
- total_flows.as_client
- total_flows.as_server
- contacts.as_client
- contacts.as_server
- DNS, TCP, ICMP stats

Fixes #2776
2019-08-21 15:37:17 +02:00
emanuele-f
ebc204b0cc Fix RRD update errors due to invalid min timestamp calculation
SNMP hosts appear into ntopng during 5min script run, so their timestamp corresponds exactly
to the 5min script timestamp. This triggered the issue.

Fixes #2734
2019-08-02 10:42:01 +02:00
Simone Mainardi
3cd6a92efd Implements nDPI stats counters for views 2019-07-19 10:30:59 +02:00
emanuele-f
a1a283d423 Change misbehaving flows ts label 2019-07-10 16:24:49 +02:00
emanuele-f
727c9efb2a Fix 5min scan alerts 2019-07-08 17:10:03 +02:00
emanuele-f
005d56e5dd Fix RRD collisions
Fixes #2690

Thank you @FrancescoStaccini for the hints
2019-07-01 11:29:43 +02:00
emanuele-f
a9d3c78587 Alerts changes
NOTE: database schema changed. Existing alerts will be lost.

- Unified engaged and closed tables
- Simplified hosts engaged alert counters handling: periodically set by lua
- Removed alert engine and replaced with alert periodicity
- Now engage is implicitly derived from the alert end timestamp and periodicity
- New alerts_api.lua to easily emit alerts
- Removed past alerts counter aggregation by hash
- Alert notifications for non-flow alerts are now removed from C and triggered by lua
2019-06-28 10:47:17 +02:00
emanuele-f
f9f341b2ca Add preference to enable l7 total flow timeseries 2019-06-27 10:01:12 +02:00
emanuele-f
c506ef6aeb Implement L7 num flows charts 2019-06-27 10:00:14 +02:00
Salvatore Costantino
3c5389ed45 Splitted TCP Statistics (#2645)
* splitted TCP Statistics

* indentation fix

* indentation fix
2019-06-10 09:03:12 +02:00
emanuele-f
130af57f5d Skip already dumped hosts 2019-05-31 12:17:59 +02:00
emanuele-f
e74f6ee3b7 Fix host timeseries first point problem.
An additional point is now stored on the ts database to address the issue.

Fixes #2184
2019-05-28 17:17:21 +02:00
emanuele-f
461ee43e16 Add UDP unicast vs non unicast breakdown 2019-05-22 17:36:24 +02:00
Simone Mainardi
7997a73590 Implements charts for AS OOO/Drops/Retransmissions 2019-05-21 18:48:49 +02:00
Simone Mainardi
e22d13533a Implements sent and rcvd TCP seqs counters per host
Implements #2503
2019-05-20 20:02:06 +02:00
emanuele-f
5aff6583b2 Fix RRD errors for duplicate LBD hosts serialized by MAC 2019-05-14 10:35:46 +02:00
SalvatoreCostantino
3fe3fecabf Splitted metric in host:ndpi_categories schema 2019-05-07 23:06:31 +02:00
emanuele-f
4f32f927c8 Add function to get the exporter interface identifier 2019-04-29 17:39:15 +02:00
emanuele-f
cdcac0e6a2 Add event exporter traffic timeseries 2019-04-29 14:15:32 +02:00
emanuele-f
2aeeb63142 Implmenent host total flows timeseries.
"host:flows" data will be dropped in favor of "host:active_flows", which has separated client and server counters

Closes #2528
2019-04-10 18:22:41 +02:00
Salvatore Costantino
1768d0b121 Modified ARP time series (#2520) 2019-04-09 15:28:29 +02:00
Salvatore Costantino
76dded229a Added ICMP ECHO time series (#2518)
* Added ICMP ECHO time series

* added icmp echo time series
2019-04-08 16:10:30 +02:00
Salvatore Costantino
f27f137c09 Added TCP packets time series (#2516) 2019-04-08 15:30:45 +02:00
Salvatore Costantino
dd24d2a932 Removed net unreachable counters (#2517) 2019-04-05 21:32:37 +02:00
Salvatore Costantino
3bb830d23e Fix active contacts time series (#2506)
* Fix active contacts time series

* Fix active contacts time series
2019-04-04 09:33:09 +02:00
Simone Mainardi
f827d8c700 Changes to DNS timeseries to show queries and replies together 2019-04-03 19:15:28 +02:00
SalvatoreCostantino
27fcedf9ff Added TCP time series 2019-04-02 16:22:39 +02:00
Salvatore Costantino
a121b6a4f8 Added ARP requests time series (#2496) 2019-04-01 16:11:37 +02:00
Salvatore Costantino
5ec5a8e9c8 Added UDP packets time series (#2488) 2019-04-01 16:10:35 +02:00
Salvatore Costantino
c8a95d9476 Added dns time series (#2487) 2019-03-28 19:14:51 +01:00
Salvatore Costantino
58becaeebe Added host and net unreachable counters (#2483)
* Added host and net unreachable counters

* Added host and net unreachable counters

* Added host and net unreachable counters
2019-03-27 21:44:47 +01:00
Simone Mainardi
41383aa51b Revert "Added new time series (#2481)"
This reverts commit 0e785d58f9.
2019-03-26 09:16:15 +01:00
Salvatore Costantino
0e785d58f9 Added new time series (#2481) 2019-03-25 21:29:36 +01:00
Luca Deri
468558ddb4 Adding a new timeseries: how to add number of unrecheable flows client/server per host. 2019-03-06 10:05:05 +01:00
emanuele-f
4a97017f35 Fix mac-based serialization key and add a preference to enabled it (disabled by default) 2019-02-22 16:01:58 +01:00
Simone Mainardi
0cd3d5be63 Implements custom timeseries 2019-02-22 15:41:41 +01:00
emanuele-f
dd37cafa12 Store and restore local broadcast domain hosts from their mac key
Charts now display the mac based data when browsing a local broadcast domain host.
This is an important change to avoid mixing historical information of different hosts in a dynamic network.

More changes will follow to migrate other historical elements, like flows, alerts and top stats.
2019-02-21 18:42:57 +01:00
emanuele-f
a486d2c19f Implement host counter of total triggered alerts
Closes #2391
2019-02-20 20:12:44 +01:00