Commit graph

251 commits

Author SHA1 Message Date
Alfredo Cardigliano
c6cf8e418e Add timeseries for host and interface DSCP classes 2020-07-21 10:08:08 +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
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
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
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
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
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
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
65905dc9fb Delete RTT ts when host is deleted
Fixes #3566
2020-03-19 19:13:29 +01:00
Luca Deri
1d2f44fc39 Moved Prometheus to attic 2020-03-19 12:58:48 +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
Simone Mainardi
0d9c9bada5 Minor return value fix 2020-03-01 19:22:07 +01:00
Luca Deri
612dc97fb8 Cleaned up the RRD driver 2020-03-01 18:23:46 +01:00
Simone Mainardi
4f30ce04a3 RRD queue fixes and debug info 2020-03-01 13:50:58 +01:00
Simone Mainardi
cce4dcf568 Implements in-mem RRD writes queue, avoids json enc/dec 2020-02-29 22:30:00 +01:00
Simone Mainardi
488165c592 Adds drops counter when the RRD export queue is full 2020-02-29 10:09:02 +01:00
Simone Mainardi
a288bbf40c Adds experimental RRD write queue 2020-02-28 19:47:44 +01:00
Luca Deri
8e1da33141 Implemented debug code for RRD 2020-02-28 17:20:30 +01:00
Simone Mainardi
918ab6283c Fixes RRD points always written as integers without decimals
Fixes #3465
2020-02-28 10:56:13 +01:00
Luca Deri
301991836d Added some debug code 2020-02-27 08:42:10 +01:00
emanuele-f
7b6ce10940 Improve empty RRD files detection for faster recovery 2020-02-26 19:09:08 +01:00
emanuele-f
a7d7d6e2ed Revert "Move host score to 5mins"
This reverts commit ab1aaeb38f.
2020-02-25 15:42:27 +01:00
emanuele-f
ab1aaeb38f Move host score to 5mins 2020-02-25 12:50:06 +01:00
Simone Mainardi
a2237266ee Adds total rrd writes and drops to periodic scripts timeseries 2020-02-24 12:54:43 +01:00
Simone Mainardi
a0612895fe Implements slow rrd checks and updates in C 2020-02-19 19:28:07 +01:00