Commit graph

96 commits

Author SHA1 Message Date
Alfredo Cardigliano
fb2ff7f2a4 Add rowid based on UUID to clickhouse (#6046) 2021-11-05 19:12:36 +01:00
Luca Deri
13407f6761 Fixes for dumping alerts into ClickHouse 2021-11-04 19:05:50 +01:00
Luca Deri
3dcd2b9e09 Code rework 2021-11-04 11:16:57 +01:00
Alfredo Cardigliano
af0cade6ba Log from crontab scripts to file only (no stdout to avoid sending emails) 2021-09-16 09:59:26 +02:00
Alfredo Cardigliano
ad726155a9 Halves number of cron script executions 2021-08-02 11:08:29 +02:00
Alfredo Cardigliano
e247139c02 Add ip_version to the alert DB. Add filter on IP version in alert explorer. 2021-07-09 18:04:27 +02:00
Simone Mainardi
feb65be1ca Implements acknowledged alerts
Implements #5600
2021-07-02 14:58:38 +02:00
Simone Mainardi
0a6b513710 Implements ability to store/search/filter host alerts by cli/srv
Addresses #5575
2021-06-30 12:58:00 +02:00
Simone Mainardi
63168f5ff2 Implements 'Subject' column for interface alerts
Addresses #5563
2021-06-24 15:51:17 +02:00
Alfredo Cardigliano
3f6c415db6 Remove --with-new-pkgs when using install 2021-06-18 10:27:33 +02:00
Alfredo Cardigliano
59f8e74788 Using install instead of upgrade in the updates script to handle kept back packages 2021-06-18 10:11:45 +02:00
Simone Mainardi
567655ad70 Fixes for active monitoring alerts
Fixes #5415
2021-05-27 15:18:10 +02:00
Alfredo Cardigliano
a097c85052 Remove attacker2victim/victim2attacker columns. Add icons for attacker/victim. Add has_attacker/has_victim fitlers. (fix #5302) 2021-05-25 12:42:44 +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
Alfredo Cardigliano
4d9d2331d4 Fix ifid range in interface_alerts schema (fix #5295) 2021-05-10 15:08:47 +02:00
Simone Mainardi
c0a3b4c288 Implements alert report global page
Implements #5291
2021-05-06 16:44:06 +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
e15641e5c1 Adds missing indices to the alerts database 2021-05-03 17:19:56 +02:00
Alfredo Cardigliano
b2a6ff60f9 Enable updates logging 2021-04-28 09:28:03 +00:00
Alfredo Cardigliano
d2bce17c7a Update all repo to avoid dependency issues 2021-04-28 10:42:38 +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
Alfredo Cardigliano
6da5e79787 Improve OS detection in updates script (OracleLinux) 2021-04-20 12:16:32 +02:00
Alfredo Cardigliano
bf5b8606e7 Use /usr/bin/env bash 2021-03-18 09:31:34 +01:00
Alfredo Cardigliano
8c3465640e Fix bash path on BSD 2021-03-03 10:24:51 +01:00
Alfredo Cardigliano
3784e66b53 Run auto updates if the ntopng service is enabled only, but still allow manual updates 2021-01-11 13:02:59 +01:00
Matteo Biscosi
12c2581719
Add files via upload
wrongly removed the file, readding it
2020-10-30 16:45:30 +01:00
Matteo Biscosi
d5c679d822
Delete ntopng-utils-manage-updates.in 2020-10-30 16:32:43 +01:00
Alfredo Cardigliano
e3a2a739f9 Auto update works only when an update is detected by cron, not manually (manual installation in this case) 2020-10-29 16:41:13 +01:00
Alfredo Cardigliano
ddcfcfa5f6 Improve updates to handle 'kept-back' package 2020-10-28 17:13:04 +01:00
Alfredo Cardigliano
824266fea9 path update 2020-10-26 14:43:37 +01:00
Alfredo Cardigliano
82682d92c3 Restart the service if not active after upgrade 2020-10-15 09:31:24 +02:00
Alfredo Cardigliano
580b2c4ef3 Check for service enabled before other checks 2020-10-12 18:41:31 +02:00
Alfredo Cardigliano
d9aa175140 ntopng --maintenance output check fix 2020-10-12 18:39:30 +02:00
Alfredo Cardigliano
a97c7c9594 Reset failure reason on successful update 2020-10-09 18:19:53 +02:00
Alfredo Cardigliano
3998ad9138 Allow updates on missing license file in community mode 2020-10-07 11:11:44 +02:00
Alfredo Cardigliano
eaa98e6002 Show counters for unhandled flows 2020-09-16 18:52:19 +02:00
Alfredo Cardigliano
2e9689ea4e Change stderr redirection in updates script 2020-09-16 15:47:48 +02:00
gabryon99
146e0f7945 rewrok gui for new recipients api 2020-09-08 14:08:44 +02:00
Alfredo Cardigliano
546733c3a2 Improve error reporting in case of failing updates 2020-08-18 18:15:11 +02:00
Alfredo Cardigliano
f466f47644 Cleanup 2020-07-22 10:30:42 +02:00
gabryon99
e20f7d28a3 add gui for snmp v3 2020-06-22 16:28:18 +02:00
Alfredo Cardigliano
e2fec946f9 Let OEM configure a repo for automatic updates 2020-05-19 11:51:18 +02:00
Alfredo Cardigliano
a36f4a3cc9 Check maintenance before running auto updates 2020-05-05 11:39:36 +02:00
Alfredo Cardigliano
fea5d55efe Do not run updates in OEM mode 2020-05-05 10:55:48 +02:00
Alfredo Cardigliano
3fa4fae942 Add quiet mode to apt-get in ntopng-utils-manage-updates 2020-04-14 10:34:11 +00:00
Alfredo Cardigliano
8502a7c46e Handle stable repo in ntopng-utils-manage-updates, configure cleanup 2020-03-30 08:46:19 +00:00
Alfredo Cardigliano
4341e99257 Improve OS family check in updates script (fix #3487) 2020-03-03 10:09:50 +01:00
Alfredo Cardigliano
0edb31caa4 Support for logging updates script actions 2020-03-01 17:08:51 +01:00
Alfredo Cardigliano
7824d0de9d Update stall check fix is back 2020-03-01 17:01:05 +01:00