Commit graph

227 commits

Author SHA1 Message Date
Matteo Biscosi
952fa6e995 Fixes missing functions 2024-02-17 09:31:51 +00:00
Matteo Biscosi
29bb2e9ea2 Fixes missing directory 2024-02-16 10:44:24 +00:00
Matteo Biscosi
dbf4bf2a2b Removed useless imports in lua code upping the memory usage 2024-02-15 15:21:40 +00:00
Nicolo Maio
55bbf18aaf Various fixes on the SNMP engaged alerts page. (#8187) 2024-01-26 16:19:38 +01:00
Nicolo Maio
2193fa286b Fix IP filter in SNMP engaged alerts explorer. (#8108) 2024-01-25 09:56:24 +01:00
Luca Deri
55870e97b9 (C) Update 2024-01-12 11:44:18 +01:00
Matteo Biscosi
5a08d6336b Disabled debug print 2023-12-01 10:45:26 +00:00
Alfredo Cardigliano
e8f10f0795 Add Alert:set_category for host/flow lua alerts with no check definition in lua 2023-11-28 12:30:53 +01:00
Alfredo Cardigliano
257ac5e71f Change check 2023-10-31 09:19:44 +01:00
Alfredo Cardigliano
f1d3b473b4 Add debug msg 2023-10-31 09:17:43 +01:00
Matteo Biscosi
b970d0859e Fixes shutting down doesn't insert alerts in CH (#7949) 2023-10-25 11:41:53 +00:00
Matteo Biscosi
ade5ea6090 Fixes interface and local networks alerts not released (#7679) 2023-10-03 10:51:31 +00:00
Matteo Biscosi
5e49c8e8ae Fixes device connection/disconnection alert 2023-07-26 09:28:09 +00:00
Alfredo Cardigliano
2ff83bcdc3 Add check for periodic scripts changing the interface 2023-07-13 16:14:10 +02:00
Alfredo Cardigliano
bc74c9d1df Improve failure messages 2023-07-13 12:39:57 +02:00
Nicolo Maio
64c62e1586 Revert "Fix SNMP alerts in case of bad port number provided by the check"
This reverts commit 488f80f476.
2023-06-06 10:43:13 +00:00
Alfredo Cardigliano
488f80f476 Fix SNMP alerts in case of bad port number provided by the check 2023-06-06 10:35:43 +00:00
Alfredo Cardigliano
ae2e0efd99 Rename parameters to avoid confusion 2023-06-05 11:01:52 +02:00
Alfredo Cardigliano
47f248c8ed Remove dead code 2023-05-22 18:04:41 +02:00
Alfredo Cardigliano
94d4f5c350 Add network info to host alerts triggered from lua 2023-04-24 18:07:20 +02:00
Alfredo Cardigliano
94aced3172 Pass ifid 2023-04-24 12:43:27 +02:00
Alfredo Cardigliano
e9f192ad04 Push smart filters for host alerts generated from lua 2023-04-24 12:28:20 +02:00
Luca Deri
f726b867c7 Updated (C) 2023-01-01 16:37:57 +01:00
MatteoBiscosi
eda4cfb088 Added severity to ntopng checks table 2022-10-20 10:34:37 +02:00
Luca
49bdd32ce0 Reworked lua code 2022-08-30 19:32:05 +02:00
Luca
74f03c3a38 Added script tracings 2022-08-30 19:32:05 +02:00
Alfredo Cardigliano
bf9a3a720c Add tracing for alerts delivery 2022-08-01 16:12:26 +02:00
Alfredo Cardigliano
b277be68f2 Add support for Active Monitoring selection in recipients 2022-04-27 17:07:53 +02:00
Alfredo Cardigliano
339cb42d1d Check checkContext output 2022-03-30 10:36:08 +02:00
Alfredo Cardigliano
6886186418 Match AM notifications against Host Pools 2022-03-02 18:59:40 +01:00
Alfredo Cardigliano
f741dd26be Fix alert engage/disengage 2022-02-24 13:18:37 +01:00
MatteoBiscosi
25f78c075a Added Active Monitoring and SNMP categories (#6334) 2022-02-21 12:59:45 +01:00
Luca Deri
588e330f18 Cleaned up alert code 2022-02-12 12:42:19 +01:00
Luca Deri
f99d05f8f2 Added context check 2022-02-04 16:42:19 +01:00
Alfredo Cardigliano
257ece18c0 Copyright update (Lua) 2022-01-03 09:42:33 +01:00
Luca Deri
8c814503d5 Added comments to make code more readeable 2021-12-29 19:23:28 +01:00
MatteoBiscosi
fd40e51428 Changed alert behavior location 2021-06-23 17:58:30 +02:00
MatteoBiscosi
a6aa647624 Removed path and timeseries string from behavior alerts 2021-06-23 16:23:45 +02:00
MatteoBiscosi
462eaa384b Fixes ASes and Networks alert behavior 2021-06-23 15:14:03 +02:00
Simone Mainardi
76fd315d1b Refactors user_scripts into checks (lua) 2021-06-16 18:02:22 +02:00
Simone Mainardi
ccb61a7444 Harmonizes remaining hardcoded Lua scores 2021-05-15 11:00:20 +02:00
Simone Mainardi
d45ab54934 Harmonizes scores for Lua-triggered alerts
Addresses #5315
2021-05-12 12:56:12 +02:00
Simone Mainardi
bb3f8ed168 Implements efficient unexpected_new_device alert 2021-05-11 19:03:40 +02:00
Simone Mainardi
95d27351af Removes a debug print 2021-05-10 15:19:51 +02:00
Simone Mainardi
457af5d222 Fixes flapping of Lua-triggered engaged alerts
Fixes #5304
2021-05-10 15:18:19 +02:00
Simone Mainardi
602ea765e2 Fixes and updates for score and severity 2021-05-05 10:34:39 +02:00
Alfredo Cardigliano
ef65671794 Remove alert severity from Alerts. Always use score (convert to severity when required for UI or similar) 2021-05-05 09:54:14 +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
Alfredo Cardigliano
083eef8a32 Update NGI log format. Improve alert rendering. 2021-04-07 15:04:23 +02:00
Alfredo Cardigliano
c5ca72c6ba Add alert_ngi_trust_event alerts 2021-04-07 13:07:38 +02:00