Commit graph

409 commits

Author SHA1 Message Date
Alfredo Cardigliano
c6cf8e418e Add timeseries for host and interface DSCP classes 2020-07-21 10:08:08 +02:00
Alfredo Cardigliano
a03c2158d8 Remove useless chart with duplicated info 2020-07-01 11:54:25 +02:00
Simone Mainardi
b8eabac4ba Adds timeseries of database dumped/dropped flows 2020-06-25 15:11:46 +02:00
gabryon99
77d5fd9706 fixed regex for influxdb version 2020-06-23 09:44:52 +02:00
gabryon99
efe75bd55a add snmp3 username 2020-06-23 09:00:55 +02:00
Simone Mainardi
a3d7365888 Implements netsnmp charts for cpu states and memory 2020-06-09 22:56:21 +02:00
Simone Mainardi
2010890af9 Migrates other lua to REST API v1 2020-06-01 11:03:12 +02:00
emanuele-f
3fe13a245b Remove unused references related to the timeseries ring 2020-05-29 14:54:21 +02:00
Luca Deri
da44b8fb65 Added missing parameter 2020-05-29 12:46:03 +02:00
emanuele-f
610e632234 Add comments/remove table.clone when not needed 2020-05-21 11:10:47 +02:00
emanuele-f
340462ad73 Cleanup of the timeseries ring and NetworkInterfaceTsPoint 2020-05-20 15:18:03 +02:00
Simone Mainardi
c41309f21e Fixes InfluxDB version check when headers are manipulated by HAProxy
Fixes #3964
2020-05-20 13:02:28 +02:00
emanuele-f
4dc368011b Remove unused local function 2020-05-18 19:27:21 +02:00
Simone Mainardi
0f2ce04912 Fixes InfluxDB retention policies not updated upon retention changes
Fixes #3922
2020-05-13 14:25:46 +02:00
Luca Deri
b0c23144ee Fixed labels and inconcistencies on active monitoring
Added ability for RRD to handle RRDs with 4 measurements. rrd driver might need further work
2020-05-04 19:13:03 +02:00
emanuele-f
9381dd6fc0 Show upload speed and latency in speedtest active monitoring 2020-04-29 16:51:11 +02:00
Simone Mainardi
290175b16f Refactors alrt builders into creators
Refactors builders into creators: calls
2020-04-27 15:53:56 +02:00
emanuele-f
00c5e9f909 Add ability to report resolved IP address for unreachable hosts 2020-04-27 15:46:03 +02:00
emanuele-f
2648ae372f Rename measure in metric for active monitoring ts
Closes #3837
2020-04-27 14:36:30 +02:00
Luca Deri
c787a9d956 Timeseries datasource (work in progress) 2020-04-25 19:48:23 +02:00
emanuele-f
345b202975 Split 95th percentile by direction 2020-04-24 18:24:57 +02:00
Simone Mainardi
2739aac076 Implements alert builders for each alert definition
[AlertsK] Implements alert consts builder

[AlertsK] alert_threshold_cross.lua

[AlertsK] too_many_drops.lua

[AlertsK] alert_test_failed.lua

[AlertsK] alert_flows_flood.lua alert_tcp_syn_flood.lua lert_tcp_syn_scan.lua

[AlertsK] alert_snmp_topology_changed.lua

[AlertsK] snmp_device_reset.lua

[AlertsK] alert_slow_periodic_activity.lua

[AlertsK] alert_port_status_change.lua

[AlertsK] alert_port_status_change.lua

[AlertsK] alert_port_load_threshold_exceeded.lua

[AlertsK] alert_port_errors.lua

[AlertsK] alert_port_duplexstatus_change.lua

[AlertsK] alert_periodic_activity_not_executed.lua

[AlertsK] alert_misbehaving_flows_ratio.lua

[AlertsK] alert_influxdb_error.lua

[AlertsK] alert_influxdb_dropped_points.lua

[AlertsK] alert_dropped_alerts.lua

[AlertsK] alert_am_threshold_cross.lua

[AlertsK] alert_broadcast_domain_too_large.lua

[AlertsK] alert_device_connection.lua

[AlertsK] alert_device_connection.lua

[AlertsK] alert_host_pool_connection.lua alert_host_pool_disconnection.lua

[AlertsK] alert_ghost_network.lua

[AlertsK] alert_ip_outsite_dhcp_range.lua

[AlertsK] alert_list_download_failed.lua

[AlertsK] alert_login_failed.lua

[AlertsK] alert_mac_ip_association_change.lua

[AlertsK] alert_slow_purge.lua

[AlertsK] alert_request_reply_ratio.lua

[AlertsK] alert_quota_exceeded.lua

[AlertsK] alert_process_notification.lua

[AlertsK] alert_nfq_flushed.lua

[AlertsK] alert_misconfigured_app.lua alert_new_device.lua

[AlertsK] alert_influxdb_export_failure.lua

[AlertsK] alert_unresponsive_device.lua

[AlertsK] alert_user_activity.lua

[AlertsK] alert_user_script_calls_drops.lua

[AlertsK] minor fix
2020-04-24 15:35:44 +02:00
emanuele-f
8d0e887878 Handle NaN in timeseries stats and total 2020-04-23 11:46:41 +02:00
emanuele-f
24583f8443 Handle NaN when downsampling
NaN values should be converted to 0 before calculating the sums. However, if all the values for the
current downsampled point are NaN, they still have to be reported as NaN.
2020-04-23 11:46:41 +02:00
emanuele-f
a6bcf6e9e3 Fix redundant interface path in RRD schemas
Affected schemas:

  - flow_script:lua_duration
  - flow_script:pending_calls
  - flow_script:skipped_calls
  - flow_script:successful_calls
  - process:num_alerts
  - process:resident_memory
  - redis:keys
  - redis:memory
  - system:cpu_load
  - system:cpu_states
2020-04-20 16:20:35 +02:00
emanuele-f
0968c7b984 Rename active monitoring timeseries 2020-04-17 12:41:21 +02:00
emanuele-f
fdadaca950 Fix invalid initial RRD point added 2020-04-17 11:22:19 +02:00
emanuele-f
64ceaa5b89 Fix discarded first RRD point in gauges
The point was discarded because of a bad RRD start time during the RRD creation.
The start time is now computed as "insertion_timestamp - heartbeat".

Fixes #3751
2020-04-15 12:55:31 +02:00
emanuele-f
035ddf48e7 Add possibly changed schema to fix cq influxdb errors 2020-04-14 15:55:26 +02:00
emanuele-f
62d1ad69db Implement algorithmn to delete generic schema prefixes with RRD 2020-04-14 13:19:52 +02:00
Simone Mainardi
3e14bc30f8 Refactors RTT to Active Monitoring
Addresses #3741

Refactors RTT: rtt_utils to active_monitoring_utils

Refactors RTT: rtt_host to am_host schema name

Refactors RTT: import_active_monitoring_config.lua

Refactors RTT: active_monitoring_stats.lua

Refactors RTT: active_monitoring_stats i18n

Refactors RTT: get_active_monitoring_config.lua

Refactors RTT: get_active_monitoring_hosts

Refactors RTT: edit_active_monitoring_host

Refactors RTT: active_monitoring.lua

Refactors RTT: active_monitor

Refactors RTT: active_monitoring_utils.js

Refactors RTT: get_active_monitoring_hosts.lua fixes

Refactors RTT: last_rtt

Refactors RTT: rtt_host to am_host
2020-04-13 21:34:10 +02:00
emanuele-f
75e7858cbc Fix RTT alerts not released when RTT host is deleted
Fixes #3608
2020-03-23 12:31:44 +01:00
emanuele-f
f5ea87910a Fix bad RTT timeseries metric and avoid HTTP 100
Should address #3603
2020-03-23 11:58:30 +01:00
emanuele-f
65905dc9fb Delete RTT ts when host is deleted
Fixes #3566
2020-03-19 19:13:29 +01:00
emanuele-f
9f01dd4afe Rework RTT to use two separate parameters for the key 2020-03-19 18:13:34 +01:00
Luca Deri
1d2f44fc39 Moved Prometheus to attic 2020-03-19 12:58:48 +01:00
Simone Mainardi
4b8c82b924 Fixes wrong upsampling of certain dashboard data
FixesÃ#3563
2020-03-18 09:29:42 +01:00
Simone Mainardi
1a2a3b72e4 Prevents writing ts stats for certain periodic activities
Fixes #3534
2020-03-12 14:57:24 +01:00
Simone Mainardi
04f5b99342 Calculates and charts RRD queue length 2020-03-09 22:46:35 +01:00
Simone Mainardi
ca48edd07e Removes slow rrd writes status which is no longer used 2020-03-06 18:35:17 +01:00
Simone Mainardi
cf90bb2bcf Allows drivers/rrd.lua to run longer than the deadline 2020-03-04 17:58:48 +01:00
Simone Mainardi
0d133d102e Fixes timeseries.lua not honoring ntop.isDeadlineApproaching() 2020-03-04 16:20:51 +01:00
Simone Mainardi
75acbbdb28 Fix to export system interface RRD points 2020-03-04 13:37:38 +01:00
Luca Deri
317e30a230 Reworked timeseries.lua behaviour to run more often with no deadline whatsoever 2020-03-04 12:37:08 +01:00
Simone Mainardi
e802bae121 Even more frequent deadline checks in timeseries.lua 2020-03-03 10:21:13 +01:00
Simone Mainardi
5ec60b8a91 More frequent deadline checks in timeseries.lua rrd export 2020-03-02 20:10:02 +01:00
Simone Mainardi
cc01dc2b2f Removes a debug trace 2020-03-02 19:40:42 +01:00
Simone Mainardi
cffe275832 Enforces deadline checks in rrd export timeseries.lua 2020-03-02 19:27:55 +01:00
Luca Deri
1074059c2d Typo
Reduced number of loops: scripts should not last forever
2020-03-02 17:35:30 +01:00
emanuele-f
32bf3b1ac4 Avoid reporting the last point when the timeseries write has not completed yet
Fixes #3478
2020-03-02 12:11:52 +01:00