emanuele-f
c183a577be
Alerts API cleanup and JSON migration
2019-07-29 15:17:22 +02:00
emanuele-f
2243cabcf1
Fix alert release time and gui enhancements
2019-07-25 14:25:27 +02:00
emanuele-f
a3942831b8
Fix issues with engaged alert counters and other improvements
2019-07-24 15:40:43 +02:00
emanuele-f
09fb8667e2
Add ability to disable specific alert types on alertables
2019-07-22 23:37:23 +02:00
emanuele-f
c715bb36f3
Implement per-alert-type host counters
...
Such counters will be used in the future to generate alert timeseries.
Counters are not currently serialized as internally discussed.
Closes #2728
2019-07-19 17:27:23 +02:00
emanuele-f
c9bf1e78cc
Implement alerts release on shutdown
2019-07-19 13:58:10 +02:00
emanuele-f
749a64e789
Release alerts on idle hosts
2019-07-19 10:54:05 +02:00
emanuele-f
3383ac0913
Implement dropped alerts per-interface counter
2019-07-18 17:29:05 +02:00
emanuele-f
b5c6f68022
Fix invalid alert type
2019-07-17 16:56:24 +02:00
emanuele-f
5444f027ed
Remove engaged alerts from sqlite
2019-07-17 16:29:55 +02:00
emanuele-f
2e537a0c94
Alert changes after review
2019-07-17 12:51:47 +02:00
emanuele-f
c117f20e19
Initial rework for in-memory alerts
2019-07-16 19:25:09 +02:00
emanuele-f
0d7195d6e3
Fix db index
2019-07-15 15:51:47 +02:00
emanuele-f
9fa3b7920c
Add trace when alerts queue limit is exceeded
2019-07-15 15:37:20 +02:00
emanuele-f
5e40e47cce
Implement expired alerts release
...
This is necessary to handle the case where a previously configured alert config is deleted
2019-07-15 13:09:18 +02:00
Simone Mainardi
ea99c39691
Defaults minimum to 0 in alerts configuration
2019-07-15 12:58:25 +02:00
Simone Mainardi
771e690397
Minor fix
2019-07-15 12:38:23 +02:00
Simone Mainardi
e890786d91
Allows alert modules to be run only at given periodicities
2019-07-15 12:26:50 +02:00
emanuele-f
3f002ad223
field_units i18n fix
2019-07-12 16:17:01 +02:00
emanuele-f
a2d1e6eda4
Fix interface alert counters and bugged release
2019-07-12 16:08:26 +02:00
emanuele-f
55cf8ffcf4
Add alert trigger debug
2019-07-11 19:23:40 +02:00
emanuele-f
b16136f5b4
Rework host threshold alerts definition
2019-07-11 19:11:33 +02:00
emanuele-f
98f95fc306
Implement host modular alerts config gui
2019-07-11 13:02:34 +02:00
emanuele-f
1e98480a6f
Initial support for host anomalies alerts
2019-07-11 12:42:25 +02:00
Simone Mainardi
2172338948
Implements per-host file-based alert checks (e.g., bytes.lua)
2019-07-10 19:23:19 +02:00
emanuele-f
a31c619500
Initial support for dynamic alert check functions
2019-07-10 18:31:14 +02:00
emanuele-f
82aa988e4b
Network threshold cross alerts now use the new api
2019-07-10 13:54:49 +02:00
emanuele-f
1dbeb118bf
Interface threshold cross alerts now use the new api
2019-07-10 12:58:17 +02:00
emanuele-f
ecdf88b8a0
Host alerts migration to new api
2019-07-09 18:50:45 +02:00
emanuele-f
14d5675212
Little fix
2019-06-28 18:34:08 +02:00
emanuele-f
bc40e7da8d
Alerts api documentation
2019-06-28 17:44:15 +02:00
emanuele-f
2df194a282
Implement alert release
2019-06-28 15:06:39 +02:00
emanuele-f
e78039c2f2
Basic alerts api documentation
2019-06-28 12:17:03 +02:00
emanuele-f
a9d3c78587
Alerts changes
...
NOTE: database schema changed. Existing alerts will be lost.
- Unified engaged and closed tables
- Simplified hosts engaged alert counters handling: periodically set by lua
- Removed alert engine and replaced with alert periodicity
- Now engage is implicitly derived from the alert end timestamp and periodicity
- New alerts_api.lua to easily emit alerts
- Removed past alerts counter aggregation by hash
- Alert notifications for non-flow alerts are now removed from C and triggered by lua
2019-06-28 10:47:17 +02:00