Simone Mainardi
e487427aab
Refactors alert_utils and enterprise_alert_utils
...
Addresses #3720
Alerts Refactor: alert_utils as module
Alerts Refactor: notify_ntopng_start and notify_ntopng_stop
Alerts Refactor: processAlertNotifications
Alerts Refactor: checkStoreAlertsFromC
Alerts Refactor: formatAlertNotification
Alerts Refactor: notification_timestamp_rev
Alerts Refactor: formatAlertMessage
Alerts Refactor: getConfigsetAlertLink
Alerts Refactor: alertNotificationActionToLabel
Alerts Refactor: flushAlertsData
Alerts Refactor: disableAlertsGeneration
Alerts Refactor: newAlertsWorkingStatus and other
Alerts Refactor: drawAlerts
Alerts Refactor: drawAlertTables
Alerts Refactor: printAlertTables
Alerts Refactor: checkDeleteStoredAlerts
Alerts Refactor: getUnpagedAlertOptions
Alerts Refactor: getTabParameters
Alerts Refactor: getAlerts
Alerts Refactor: getNumAlerts
Alerts Refactor: performAlertsQuery
Alerts Refactor: sec2granularity
Alerts Refactor: granularity2id
Alerts Refactor: granularity2sec
Alerts Refactor: alertEngineLabel
Alerts Refactor: alertEngine
Alerts Refactor: alertEngineRaw
Alerts Refactor: alertTypeDescription
Alerts Refactor: alertType
Alerts Refactor: alertTypeLabel
Alerts Refactor: alertTypeRaw
Alerts Refactor: alertSeverity
Alerts Refactor: alertSeverityLabel
Alerts Refactor: alertSeverityRaw
Alerts Refactor: get_make_room_keys
Alerts Refactor: enterprise_alert_utils
2020-04-10 14:03:20 +02:00
Simone Mainardi
3744ace4f8
Refactors graph_utils and nv_graph_utils
...
Addresses #3720
Refactor: create module graph_utils
Refactor: get_timeseries_layout
Refactor: get_default_timeseries
Refactor: getDeviceCommonTimeseries
Refactor: printCategoryDropdownButton
Refactor: printPoolChangeDropdown
Refactor: poolDropdown
Refactor: printProtocolQuota
Refactor: printGraphTopFlows
Refactor: drawGraphs
Refactor: printNotes
Refactor: getMinZoomResolution
Refactor: printSeries
Refactor: zoom_vals
Refactor: getZoomDuration
Refactor: getZoomAtPos
Refactor: stackedProgressBars
Refactor: percentageBar
Refactor: breakdownBar
Refactor: getProtoVolume
Refactor: normalizeSeriesPoints
Refactor: nv_graph_utils
Refactor: extendLabels
Refactor: getAlertGraphLink
Refactor: performCustomQuery
Refactor: drawProGraph
Refactor: unifies nv_graph_utils and graph_utils
2020-04-10 09:47:32 +02:00
Alfredo Cardigliano
2425134f05
Replace isEnterprise with isEnterpriseM
2020-04-02 12:36:34 +00:00
Luca Deri
7bdb5ceff4
Removed blankc
2020-03-30 16:40:57 +02:00
Simone Mainardi
ca48edd07e
Removes slow rrd writes status which is no longer used
2020-03-06 18:35:17 +01:00
emanuele-f
0facf0e27d
Implement host timeseries off/light/mode selection
...
Closes #3466
2020-03-03 15:52:04 +01:00
Simone Mainardi
a12273b1b5
Merges interface TCP stats timeseries pref with traffic pref
...
Fixes #3463
2020-02-28 12:15:49 +01:00
emanuele-f
2dbdc13ec6
Add option to disable unwanted host timeseries
2020-02-27 18:09:18 +01:00
Luca Deri
8811a076a6
Code cleanup
2020-02-27 08:19:17 +01:00
emanuele-f
a7d7d6e2ed
Revert "Move host score to 5mins"
...
This reverts commit ab1aaeb38f .
2020-02-25 15:42:27 +01:00
emanuele-f
ab1aaeb38f
Move host score to 5mins
2020-02-25 12:50:06 +01:00
emanuele-f
a428bb665f
Add work completion indicator to ht_stats/stats/5min dump
2020-02-21 17:43:07 +01:00
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