Commit graph

302 commits

Author SHA1 Message Date
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
Matteo Biscosi
b06451bd31 Fixes influxdb querytotal not working 2023-06-01 16:23:46 +02:00
Matteo Biscosi
80738214c1 Fixes attempt to index nil value 2023-06-01 08:05:55 +00:00
Matteo Biscosi
c58afb9464 Fixes available timeseries not reported (#7395) 2023-05-31 15:36:41 +00:00
Matteo Biscosi
15dd277bab Fixes influxdb hosts timeseries 2023-05-30 08:12:23 +00:00
Nicolò Maio
fcb564b7c7
Handle end time on timeseries. (#7438) (#7466) 2023-05-29 15:20:11 +02:00
Matteo Biscosi
4a8eafc30d Fixes influxdb incorrect data 2023-05-24 16:41:01 +02:00
Matteo Biscosi
0f12da2061 Fixes possible id error in timeseries charts 2023-05-23 10:12:42 +00:00
Matteo Biscosi
c6909f0748 Migrated front end chart timeseries library 2023-05-23 08:22:14 +00:00
Alfredo Cardigliano
ed2bf419bd Add Interface Throughput charts (bps and pps) 2023-04-24 16:57:46 +02:00
Matteo Biscosi
654256d271 rrd nil value called 2023-04-04 14:19:46 +00:00
Matteo Biscosi
898c47341e Removed nan to 0 values from charts (#7312) 2023-03-16 15:53:50 +00:00
Luca Deri
3ff92d852a Fixed stats calculation 2023-01-31 16:30:09 +01:00
Luca Deri
49f9c2729c Updated series statistics 2023-01-31 15:59:30 +01:00
Luca Deri
d16e693d43 Updated rrd fstep 2023-01-31 15:41:19 +01:00
Luca Deri
423d341c09 Fixed RRD series extraction 2023-01-31 15:04:21 +01:00
Luca
f1b55eaed3 Fixes #7178 2023-01-27 18:04:20 +01:00
Luca
18d7b590f5 Updated totals 2023-01-27 17:08:00 +01:00
Luca
5d9fc29f4c Updated rrd calculations 2023-01-27 16:15:33 +01:00
Luca Deri
83c75d2474 Updated counter scaling (no gauge) 2023-01-27 12:52:24 +01:00
Luca Deri
36e8592678 Fixed RRD driver for step calaculation 2023-01-27 12:21:36 +01:00
MatteoBiscosi
20107649e9 Fixes influxdb retention not updated (#7096) 2023-01-26 11:25:46 +01:00
Alfredo Cardigliano
80542042ee Remove old Health -> Alerts page 2023-01-23 19:12:03 +01:00
MatteoBiscosi
52c316d214 Removed non standard connotations (#6878) 2022-10-17 15:53:36 +02:00
MatteoBiscosi
f185cc8425 Fixes non working rrd charts 2022-09-01 10:58:20 +02:00
Luca Deri
8fc4dee548 Fixes RRD driver implementation by exporting series names 2022-07-06 00:17:31 +02:00
Luca Deri
3265c8bbc8 Fixes #6762 2022-07-05 17:54:22 +02:00
Luca Deri
b0d19a1961 Fixed RRD tineseries support removing series search by (hardcoded) name 2022-07-01 15:12:12 +02:00
Luca Deri
b988905133 Fixed RRD schema naming 2022-06-29 18:48:27 +02:00
Luca Deri
7e4f362cbc SNMP schema updates 2022-06-29 11:14:22 +02:00
MatteoBiscosi
6c9f571196 Separated the two data retentions 2022-03-31 16:39:58 +02:00
MatteoBiscosi
fa4e7bbc61 Doubled influxdb ts precision (#6307) 2022-03-14 11:26:37 +01:00
Luca Deri
0da4c556e7 InfluxDB export files are now writte in tmp/influxdb as with clickhouse 2022-02-01 21:41:52 +01:00
MatteoBiscosi
e92135e776 Reorganized periodic scripts 2021-12-28 15:41:28 +01:00
Alfredo Cardigliano
153c4a4503 Cleanup deprecated nindex code 2021-12-09 16:55:31 +01:00
Simone Mainardi
8cb3007026 Logs schema name upon RRD update errors
Addresses #6094
2021-11-24 15:46:18 +01:00
Simone Mainardi
3e5bd5b5ce Fixes InfluxDB attempts to always re-create retention policies
Addresses #5944
2021-11-22 17:20:08 +01:00
Simone Mainardi
27951ae8a1 Fixes invalid traffic totals when reading large timespans
Addresses #5683
2021-07-20 11:14:38 +02:00
Simone Mainardi
b108cfbd30 Fixes for tests alert_web_mining and invalid_dns_query 2021-07-20 09:58:02 +02:00
MatteoBiscosi
7d264efe7b Removed wrong assignement 2021-06-25 10:59:13 +02:00
MatteoBiscosi
6c9b183819 Fixed chart label wrongly formatted (#5552) 2021-06-25 10:57:01 +02:00
Simone Mainardi
29f69056f0 Prevents RRD schema changes and overwrites
Possibly addresses #5507
2021-06-24 11:59:19 +02:00
Simone Mainardi
0f5340e1a3 (C) update 2021-05-31 12:39:02 +02:00
Simone Mainardi
d45ab54934 Harmonizes scores for Lua-triggered alerts
Addresses #5315
2021-05-12 12:56:12 +02:00
Simone Mainardi
bbe6a3de37 Changes set_severity to set_score 2021-05-05 09:59:04 +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
Simone Mainardi
537bc5210a Adds Layer-7 Applications to Exporters (backend)
Addresses #4976
2021-02-04 11:01:22 +01:00
Matteo Biscosi
101c53336e Migrates alerts to an object-oriented implementation 2020-12-23 11:46:26 +01:00
DasSkelett
14d89c3fdb
Fix nil check in isCompatibleVersion() (#4841)
While playing around with the timeseries feature I got the following exception when trying to use Telegraf's `inputs.influxdb_listener` as proxy to a Prometheus database.
```
...opng/scripts/lua/modules/timeseries/drivers/influxdb.lua:1643: attempt to index a nil value (local 'current')
```

`current` is likely supposed to be checked for nil earlier together with `required`, but instead of `current` the line is checking `version`, which isn't used anymore afterwards though.

So this commit changes the check from `version == nil` to `current == nil`.

Since then I've discovered that proxying Prometheus via Telegraf's `influxdb_listener` doesn't work anyways since ntopng also tries to read from it, but that's a different story.
2020-12-16 17:52:28 +01:00