Commit graph

80 commits

Author SHA1 Message Date
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
emanuele-f
574dbdfb60 Add missing OS fix 2020-02-28 11:35:18 +01:00
emanuele-f
5c27c473a5 Handle nedge update from gui 2020-02-28 11:29:33 +01:00
Alfredo Cardigliano
8044aaa3a7 Software updates script improvements 2020-02-10 11:32:01 +01:00
Alfredo Cardigliano
717b59d109 Fix safety check in software updates 2020-01-29 15:48:33 +01:00
Alfredo Cardigliano
633028eb8c Check if other instances of ntopng updates are running with the same action 2020-01-27 18:19:40 +01:00
Alfredo Cardigliano
41c26bb5c9 Run the cron scripts when the service is enabled only 2020-01-13 09:47:39 +01:00
Alfredo Cardigliano
405facaf40 Suppressing unnecessary SET/GET logs from redis-cli 2019-12-23 14:25:01 +01:00
Alfredo Cardigliano
e2fb1789b0 Suppressing stderr from redis-cli 2019-12-23 13:55:42 +01:00
Alfredo Cardigliano
a134ddfbc0 WImprove updates failures detection. Warns he user about updates/upgrade failures 2019-12-20 11:49:22 +01:00
Alfredo Cardigliano
523d63565c Fix broken packages during updates check. Report installation failues. 2019-12-20 10:54:03 +01:00
Alfredo Cardigliano
b16479603f Automatic updates preference 2019-12-13 13:05:58 +01:00
Alfredo Cardigliano
89a28b1a04 Cleanin up check_for_updates key after check is complete 2019-12-12 11:08:23 +01:00
Alfredo Cardigliano
ff7b139ddd Updates improvements for centos 2019-12-12 09:47:18 +01:00
Alfredo Cardigliano
4000fc8a1d yum parse fix 2019-12-11 18:21:30 +01:00
Alfredo Cardigliano
a35d5426f7 Fix updates on Ubuntu 18 2019-12-11 17:43:21 +01:00
Alfredo Cardigliano
8f652cff71 Software update support 2019-12-11 13:14:15 +01:00