Commit graph

383 commits

Author SHA1 Message Date
Simone Mainardi
76fd315d1b Refactors user_scripts into checks (lua) 2021-06-16 18:02:22 +02:00
Simone Mainardi
8cd62f79e9 Implements ability to filter/delete alert exclusions by host 2021-06-14 16:56:29 +02:00
Alfredo Cardigliano
5a0d0c37ae Fix Delete on all alerts page (add missing rest endpoint) 2021-06-11 14:46:04 +02:00
Simone Mainardi
507d8dce28 Implements the ability to list/configure alarm exceptions
Implements #5461
2021-06-09 19:35:42 +02:00
Matteo Biscosi
a35873d484 Moved new alert dashboards rests into pro version 2021-06-07 19:24:05 +02:00
Matteo Biscosi
a6277b8d87 Fixes alert dashboards wrong ifid 2021-06-07 18:29:46 +02:00
Simone Mainardi
f27ea48a54 Replaces old warning.png with fontawesome
Fixes #5397
2021-06-04 15:38:29 +02:00
Simone Mainardi
eee508fdf6 Fixes Lua error in v1/get/host/alert/list.lua 2021-06-04 14:42:06 +02:00
Matteo Biscosi
c212c47eff Changed interface select for new alert rest 2021-06-04 13:38:42 +02:00
Matteo Biscosi
76645e6753 Added new rest api for the alerts dashboard 2021-06-04 11:50:33 +02:00
Simone Mainardi
afb562c0b0 Fixes alert pagination broken for flows
Fixes #5440
2021-06-04 09:40:15 +02:00
lucapruneti
fc7efc2a0c
issue_5404_download_alert_format-inconsistent (#5433)
* Change host alert function name to json

* Refactored *_alert_store function with format_json, added csv format tohost alert

* Added .vscode directory to gitignore

* Refactor alert_store:to_csv function to single loop format

* Removed no_data value for no records in alert csv download

* Implemented csv export for alerts

* Merge with dev

* Removed row_id alert field to be exported in csv

* Refactored alert/*/list.lua with simple decision value format construct

* Refactored alerts csv export

* Fix removed output test files

* Added alert csv export for subdocuments

* Modified gitignore
2021-06-04 08:49:31 +02:00
Matteo Biscosi
a616a8f06f Changed name value and fixed self nil value 2021-06-03 17:39:13 +02:00
Matteo Biscosi
8ccde0a06a Fixed new alert cards rest response 2021-06-03 16:49:45 +02:00
Matteo Biscosi
d87599dba3 Added tooltip for new alert cards 2021-06-03 16:19:11 +02:00
Matteo Biscosi
82b8450b41 Added general alert stats for the new Dashboard 2021-06-03 10:12:16 +02:00
Simone Mainardi
024041bbc7 Fixes broken deletion of active monitoring alerts 2021-05-27 12:19:32 +02:00
Simone Mainardi
0855f627a0 Allows alert access to admins and non-admins w/o allowed networks
Addresses #5324
2021-05-25 18:14:17 +02:00
Simone Mainardi
bc6008be28 Reports all alerts inside a flow alert (not jsut the predominant)
Implements #5316
2021-05-13 15:51:05 +02:00
Simone Mainardi
bb3f8ed168 Implements efficient unexpected_new_device alert 2021-05-11 19:03:40 +02:00
Simone Mainardi
74603b8fe6 Implements alerts summary page for engaged alerts 2021-05-10 12:20:27 +02:00
Luca Deri
a0ba02a5d9 More alert color fixes 2021-05-07 13:51:05 +02:00
Alfredo Cardigliano
10d8f1f2c5 Fix interface alert ts 2021-05-07 12:27:11 +02:00
Luca Deri
1a59a9cc80 Updated alarm widget 2021-05-07 11:38:24 +02:00
Simone Mainardi
ec06e6568f Simplifies and keeps per-family alert counters 2021-05-07 10:21:32 +02:00
Simone Mainardi
c0a3b4c288 Implements alert report global page
Implements #5291
2021-05-06 16:44:06 +02:00
Alfredo Cardigliano
e4ff578117 Dedup code for alert rest endpoints 2021-05-06 15:04:02 +02:00
Simone Mainardi
83f0c38937 Massive cleanup of old alerts code 2021-05-03 18:16:46 +02:00
Simone Mainardi
fce6454125 Updates ts.lua with new stacked charts by severity 2021-05-03 12:38:08 +02:00
Alfredo Cardigliano
f5138b71ac Sort severity colors in chart 2021-05-03 12:25:47 +02:00
Alfredo Cardigliano
9414a3ab25 Add colors to alert timeseries. Optimize queries by severity. 2021-05-03 12:06:41 +02:00
Alfredo Cardigliano
2173b18ea0 Alert histogram for flows and hosts now includes severity info (wip #5210) 2021-04-30 19:16:00 +02:00
Matteo Biscosi
4b699226c9 Fixes alert download button broken and changed to txt
Implements #5260
2021-04-30 12:38:52 +02:00
Simone Mainardi
5bd58b4109 Implements histogram for engaged alerts 2021-04-28 17:41:33 +02:00
gabryon99
6e0cd755cc fixes for missing value format (#5222) 2021-04-27 11:31:58 +02:00
Simone Mainardi
2278926da4 Merge branch 'alerts-store' into dev 2021-04-26 19:59:30 +02:00
Simone Mainardi
c7082a4647 Implements new alerts database and drilldown
alert store skeleton

Alert database type changes

Implement alert store for host alerts. All alert store skeletons.

Fix class method access

Enable tracing

Implements simple queries for host alerts

Implement flow alert store

Fixes escaping of INSERT queries

Flow alerts database schema fixes

Adds escaping for alert JSON in flows and hosts

Implements queries .select() for alerts store

Adds limit and offset to perform paginated queries

Adds new REST getter for flow alerts

Name changes alert_severity to severity, alert_json to json

Fixes alert message not shown

Implement active monitoring alerts store

Implements sort of queries in the new dataabase

Changes alert_type to alert_id

Implement mac alerts store

Fixes flow alert messages

Implement system alerts store

Implement snmp alert store

Add missing items to the flow alerts

Add missing items to the host alerts

Add missing items to the mac alerts

Implements COUNT aplerts api

Add device_name to snmp alerts

add flow alerts templates

updated gitignore

fix for missing order field

add families defined in `alert_store_schema.sql`

Reworks and simplifies alert store subclasses

Implements REST API to fetch alert timeseries

Fixes date in flow REST api

Host alert json fix

Add get/host/alert/list.lua

Move alert/list.lua to alert/past/list.lua

Add alert/past/list.lua for all alert families

Add entity_id to system table to identify the alert type based on <alert_id, entity_id>

Add missing field

Implements facilities to query engaged alerts via REST

Handle both historical and past alerts in alert/list.lua

Fix count

Update params of select_historical

Implement method to add family-specific filters

Add alert/ts.lua for all alert families

Implements facilities and REST endpoints to delete alerts

Implements ordering of alert queries

Fix add_order_by group_by

Rest API tests update

Tests output update

Remove debug trace

Use alert_id instead of type. Add more flow alert info.

Update http lint

Format obsolete tlv version alerts. Add more host info.

Add row_id to list of alerts

Fix selection of engaged alerts

Add test for mac alerts (bcast domains)

Removes attempt to format alerts as flow alerts

Fixes interface selection for active monitoring

Update test output with rest changes

Add more fields to be ignores

Set alert count to 1 for the time being

add bar timeseries chart

add apexcharts

improvements on timeseries bar chart

registered chart callbakcs

working on alert page

fix for date format

Fixes acrive monitoring REST API

Fixes alignment of grouped alert data

Additional fix for alert histogram

remove useless if

formatting alerts page

fixes on flows alert stats table

rename local networks to device

format host pagie in alert_stats

add tag support for hosts and flow

implemented single delete action

add release modal

Fixes format of threshold cross interface alerts

Fixes wrong increase of dropped alerts

Implements exclusion list for invalid dns queries

Reworks exclusions lists for hosts and flows

Addresses #5212
Addresses #5113

Adds host alert keys in host callbacks definitions

Adds alert ids to flow callbacks

fix for not working button (#5215)

Fixes reported timeseries name

removed any additional button inside chart's toolbar (#5200)

Add tables for interfaces, networks, users to the schema. Skeleton alert_store classes

fixed broken range picker layout in firefox (#5199)

Alert insert fixes

Add more info to network alerts

Add rest endpoint for interface, network, user alerts

Fix endpoint selection in alerts_stats

Unifies columns between engaged and past alerts

Fixes Missing mandatory 'alert_granularity'

Minor fixes for missing alert_severity

Fixes arithmetic on a nil value (field 'last_seen')

Fixes get/system/alert/list.lua

use tstamp for column names (#5221)

Implements host alert formatter

Add alerts_store format_record_common

Use common format_record for am, system alerts

Use common format_record for all alerts

Fixes formatting of alerts of all types

Fixes nil in function 'hostinfo2label'

fixes on disable modal

add pages for network, user and interface endpoint (#5224)

Set alert_entity in all classes

Unifies influxdb alerts into system alerts

Addresses #5224

Unifies process alerts into system alerts

Addresses #5224

Cleanup unused periodicActivityEntity

Unifies category lists alerts into system alerts

Addresses #5224

Aligns new alert enums

Addresses #5224

Fixes alert page links

Fixes insertion of interface alerts

Implement filters for Host alerts

Fixes active monitoring alerts not triggering

Implement filters on flow alerts

Fixes for internal alerts timestamp and subtype

implements disable for the alerts

formatted alert disable label

Add address and device type to mac alert records

fix for delete alert toggle

Fix access to entity_val in alert_unexpected_new_device

add mac address and device type inside table

Fixes for new alert fields not handled

Fixes alert_definitions to handle new fields

Add ip/port to snmp alert records

Implements deletion of stored flow alerts

Add alert_name to all alert records via rest. Fix duration.

fixes for snmp tab

Implements delete of past host alerts

Add name to snmp alert records

fixes on system tab

Fix Date column

fixes link

Update menu

Fixes bad argument #3 to 'format' in snmp alerts

updated interface link

new alerts url for host (#5228)

Fixes sort of engaged alert

Minor cleanup

Fixes data returned for local network alerts

Fix duration for one shot. Note.

Fix duration override

Fixes interface selection for system alerts

Move host alert page

fixes for local network tab

Minor fix

Fix engaged host alerts

fixes on user tab

Fix alert_user_activity message
2021-04-26 19:41:34 +02:00
Matteo Biscosi
e39f265f93 Fixes not correctly shown Thpt and improved performancies
Implements #5195
2021-04-23 11:19:28 +02:00
Matteo Biscosi
f07c823767 Added label formatter into hosts map 2021-04-21 17:54:46 +02:00
gabryon99
0e9856a480 add custom tooltip formatter
Added a custom tooltip formatter to display better informations about the hovered bubble. (#5182, #5193)
2021-04-21 14:53:38 +02:00
Matteo Biscosi
888133ccb2 Removed 'duplicated' flows stats function retriever
Implements #5195
2021-04-21 10:56:14 +02:00
Matteo Biscosi
e1bbb5632b Improved host map performances and possibility to change label names 2021-04-20 16:41:38 +02:00
Luca Deri
7876bfa0c1 Added host map for blackedlisted hosts flows 2021-04-18 15:37:53 +02:00
Matteo Biscosi
8bf28a6033 Fixes invalid label in host map names
Implements #5177
2021-04-18 11:22:06 +02:00
gabryon99
491aee29c9 enbaled autoscaleYaxis 2021-04-17 10:18:12 +02:00
gabryon99
fe073cff35 add forceNiceScale param to yaxis (#5182) 2021-04-17 10:10:34 +02:00
gabryon99
322149bd48 add reload button and bubble_mode to the url (#5181) 2021-04-17 10:08:28 +02:00
Matteo Biscosi
89353e32fb Fixes traffic map crash hide entries if traffic map disabled 2021-04-16 16:05:53 +02:00
Matteo Biscosi
64179273cf Added get traffic map stats per host 2021-04-16 11:37:31 +02:00
Matteo Biscosi
87d5cd2ff0 Added nDPI stats per host getter 2021-04-16 10:23:09 +02:00