Alfredo Cardigliano
e888188c64
Return NOT_FOUND if host not found ( fix #3994 )
2020-05-27 17:45:56 +02:00
Simone Mainardi
073a8c3dd1
Implement getter for alert constants
...
Implements #3946
2020-05-27 15:26:58 +02:00
Alfredo Cardigliano
3e5eca0ee5
Filter rest/v1/get/alert/data.lua based on epoch_begin/epoch_end/alert_type/alert_severity ( #3952 )
2020-05-27 12:53:28 +02:00
Alfredo Cardigliano
97046a8a97
Add rest/v1/get/alert/severity/counters.lua REST API
2020-05-27 11:05:59 +02:00
Alfredo Cardigliano
9814c91bfb
Add filters to rest/v1/get/alert/type/counters.lua REST API
2020-05-27 10:53:07 +02:00
Alfredo Cardigliano
7c977a3ebc
Add rest/v1/get/alert/type/counters.lua API REST (implement #3948 )
2020-05-27 10:47:33 +02:00
Alfredo Cardigliano
dcaadc7a3d
Add rest/v1/get/flow/l4/counters.lua rest/v1/get/flow/l7/counters.lua (implement #3947 #3950 )
2020-05-26 15:13:37 +02:00
Alfredo Cardigliano
21fe9aa490
Add v1/get/alert/ts.lua REST API (implement #3943
2020-05-26 12:28:33 +02:00
Alfredo Cardigliano
09ea665c9b
Improve v1/get/alert/data.lua endpoint
2020-05-26 11:11:20 +02:00
Alfredo Cardigliano
c24ea73dec
Add rest/v1/set/pool/config rest/v1/set/scripts/config REST API
2020-05-20 14:51:02 +02:00
Alfredo Cardigliano
ac24563f15
Add rest/v1/get/timeseries/ts API
2020-05-20 14:36:21 +02:00
Alfredo Cardigliano
e45ae9bf7a
Add missing interface select
2020-05-20 13:04:00 +02:00
Alfredo Cardigliano
5a753d8727
Add v1/get/alert/data rest API, alert_consts optimization
2020-05-20 11:02:44 +02:00
Alfredo Cardigliano
2f4d47f064
Add v1/get/pcap/live_extraction.lua API
2020-05-18 19:28:30 +02:00
Alfredo Cardigliano
7335b3b2c9
Add v1/get/pool/config v1/get/scripts/config REST API
2020-05-18 18:54:58 +02:00
Alfredo Cardigliano
b266ab9335
Add v1/get/system/stats v1/get/host/mud REST API
2020-05-18 17:46:50 +02:00
Alfredo Cardigliano
5ebd5ad5c1
Add v1/get/interface REST API
2020-05-18 17:15:17 +02:00
Simone Mainardi
3258fa074e
Additional fixes for interface validation
2020-05-18 13:02:56 +02:00
Luca Deri
ccf76ca54d
Added "real" intefaceId validation
...
Initial work towards REST API
2020-05-17 20:47:46 +02:00
Simone Mainardi
77a32cb19b
Updates ts.lua for queries with different timezones
...
Fixes #3924
2020-05-13 16:39:37 +02:00
emanuele-f
af842e4aa6
Cleanup unnecessary CSRF tokens passed
2020-05-08 12:56:58 +02:00
emanuele-f
947fee33b2
Write 0 in timeseries for unreachable monitored hosts
2020-04-17 16:19:56 +02:00
emanuele-f
35be58ede9
Fix speed test alerts not generated
2020-04-17 12:22:45 +02:00
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
Simone Mainardi
53a4d796f5
Fixes wrong response of REST endpoint when no host is found
...
Fixes #3709
2020-04-08 18:24:06 +02:00
gabryon99
ce0e3d2d11
fix for system view
2020-03-24 12:39:08 +01:00
gabryon99
7479582210
fix system view and add rtt host from host_details
2020-03-23 17:38:22 +01:00
Simone Mainardi
794cd523c6
Fixes data.lua interface selection using ids
2020-03-20 12:00:57 +01:00
Simone Mainardi
b4e6af047a
Reworks maintenance expired message
...
Fixes #3535
2020-03-18 11:55:43 +01:00
Simone Mainardi
ef06f9e1d3
Refactors system stats in a module system_utils.lua
2020-02-27 12:24:23 +01:00
gabryon99
b5dbd9b5cd
added layout to graphs
2020-02-24 14:35:09 +01:00
Luca
b4aae5d97a
Added graph layout info
2020-02-24 10:57:40 +01:00
Simone Mainardi
5276de4ca8
Implements degraded performance badge
2020-02-21 17:14:15 +01:00
Alfredo Cardigliano
da6f1c354d
Add system stats REST endpoint. Load disk space utilzation via AJAX ( fix #3421 )
2020-02-16 11:01:04 +01:00
Alfredo Cardigliano
e2f0d36d2f
Moved hostpool endpoints
2020-02-06 11:20:30 +01:00
Alfredo Cardigliano
2ab9cc14ad
Host pool import/export buttons, endpoint improvements
2020-02-06 11:03:56 +01:00
Alfredo Cardigliano
816d15cfbc
Host pool import endpoint
2020-02-05 19:24:25 +01:00
Alfredo Cardigliano
c2d61e67e9
Host pool export endpoint
2020-02-05 18:28:19 +01:00
Alfredo Cardigliano
30ff92d472
Fix user reset for ZMQ counters
2020-01-23 17:04:52 +01:00
Alfredo Cardigliano
a24337ecd0
User scripts configuration import modal
2020-01-16 11:10:05 +01:00
Alfredo Cardigliano
3ce84b07cf
Add button to export user script conf. New endpoint to set user scripts configuration.
2020-01-15 17:48:00 +01:00
Alfredo Cardigliano
4a1d217d3a
Rest endpoint to export user scripts configuration
2020-01-15 11:58:09 +01:00
Alfredo Cardigliano
f4a4c07d80
Add ability to extract traffic to users with permission (direct extraction only)
2020-01-13 17:39:12 +01:00
Luca Deri
170bc60f19
Updated (C)
2020-01-08 23:52:51 +01:00
Simone Mainardi
b44de6e18d
Implements discarded probing traffic counters and timeseries
2019-12-31 16:01:24 +01:00
emanuele-f
a3432e00e8
Implement ntopng plugins
...
Plugins are a convenient way to group together related lua scripts.
Their primary use case is to group user scripts and their alert/status
definition.
The builtin ntopng user scripts and definitions are now
packed into plugins directories. In future, we will support loading of
user created plugins.
Plugins are loaded at startup into some runtime directories and then
used. Other changes provided by this commit include:
- Add sample flow logger plugin
- Initial support for system user scripts
- Rename edge to threshold
- Migrate system probes to user scripts/plugins
- Migrate scripts to more explicit alerts_api.checkThresholdAlert api
2019-12-10 09:25:57 +01:00
emanuele-f
33949d31fd
Rework benchmark stats and charts
2019-10-31 17:48:53 +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