Commit graph

863 commits

Author SHA1 Message Date
Luca Deri
1d8f07430a Added L7 information in flow object adding
- flow.http()
- flow.dns()
- flow.ssh()
- flow.tls_quic()
2022-11-27 18:53:39 +01:00
Luca Deri
4212c6225d Enhanced the host Lua API for host checks 2022-11-25 18:34:10 +01:00
Luca Deri
01719751a6 Improved tracings 2022-11-25 11:01:31 +01:00
Luca Deri
ad716ced36 Fixed invalid definition 2022-11-24 17:43:30 +01:00
Luca Deri
af97ddee9f Improved flow user scripts 2022-11-24 17:42:26 +01:00
Luca Deri
71fbbdbf58 Implemented custom host script (WIP) 2022-11-24 12:34:14 +01:00
Luca Deri
66a4e73f1e Initial implementation of custom Host script 2022-11-23 18:56:54 +01:00
Luca Deri
9bdff1b170 Improved custom flow script alert 2022-11-23 17:04:01 +01:00
Luca Deri
a687b9280a Implemented custom script check 2022-11-23 11:11:45 +01:00
MatteoBiscosi
6ea5cfbba1 Removed debug print 2022-11-21 10:15:57 +01:00
Luca Deri
309d17b6b8 Implemented CustomFlowLuaScript.cpp engine 2022-11-20 20:30:49 +01:00
Luca
686112d3eb Initial implementation of host check rules. This is work in progress and ** subject to change **
Under the network interface -> Wheel there's a new field named "JSON Host Rules"
that can accept JSON in the format below:

- target can be * (= all local hosts) or a specific IP address
- frequency can be hourly or daily and it specifies the timeperiod on which the condition is evaluated
- metric can be set to bytes, score or a L7 protocol supported in nDPI
- threshold is the numerical value over which the alert is triggered

[
{ "target": "*",  "frequency": "hourly", "metric": "bytes",  "threshold": 354333 },
{"target": "146.48.56.79","metric": "AmazonAWS","frequency": "daily","threshold": 5000 }
]
2022-11-02 19:00:45 +01:00
MatteoBiscosi
78ed044152 Removed unused require 2022-08-12 11:10:00 +02:00
Luca Deri
1488f1749a Renamed influxdb.lua -> upload_timeseries.lua as this file had nothing to do with influxDB 2022-07-06 00:12:39 +02:00
Alfredo Cardigliano
4e96ca6a39 Skip connectivity check if forced offline 2022-05-12 11:45:53 +02:00
Luca Deri
207d40c20a Puttin script out of hour sync to avoid overload on speedtest servers (#6547) 2022-04-28 23:10:04 +02:00
Luca Deri
0072fca594 Moved to pro 2022-04-14 22:12:08 +02:00
MatteoBiscosi
6c9f571196 Separated the two data retentions 2022-03-31 16:39:58 +02:00
Luca Deri
9e1f6dc0d6 Removed as it was not supposed to stay here 2022-03-26 09:15:32 +01:00
Luca Deri
614125cbba Starup log is now verbose to spot initialization delays 2022-03-08 12:04:00 +01:00
Luca Deri
5ab94c8eb4 Script not necessary 2022-03-01 11:01:55 +01:00
Luca Deri
269e9da142 (C) Update 2022-02-20 23:17:50 +01:00
MatteoBiscosi
556057c1c1 Fixes nil value notification 2022-02-18 11:45:46 +01:00
Alfredo Cardigliano
53e21718fa Safety check 2022-02-17 15:42:05 +01:00
MatteoBiscosi
f86b7afe94 Fixes alerts not triggered due to redis delete 2022-02-17 11:50:12 +01:00
MatteoBiscosi
57a85de50e Cleaned up the code from plugin_utils 2022-02-11 12:07:23 +01:00
Matteo Biscosi
1b3a1c97c8 Removed checks plugins concept from ntopng 2022-02-08 18:13:11 +01:00
Luca Deri
81ffc1ebf4 Improved MySQL purge tracings 2022-02-08 10:49:08 +01:00
Luca Deri
ebaba91def
Added tracing message when old records are purged 2022-02-07 08:56:43 +01:00
Luca Deri
b93d2a8feb Delete old discard and tmp files 2022-01-31 12:40:46 +01:00
Luca Deri
8828a9ca90 MySQL retention is implemented serially in order to avoid that slow MySQL DBs create issues 2022-01-26 13:01:47 +01:00
Luca Deri
189c2bb739 Cleaned up DB detention scripts 2022-01-26 12:02:32 +01:00
Luca Deri
6f8d6df226 Renamed daily retention scripts 2022-01-26 11:27:26 +01:00
Matteo Biscosi
7174cce14f Fixes influxdb timeseries export (#6232) 2022-01-24 10:04:30 +01:00
Matteo Biscosi
da8609727f Removed half of the monitor plugins (#6224) 2022-01-21 19:21:58 +01:00
Luca Deri
cc04fd46e8 Cosmetic fixes 2022-01-21 16:56:07 +01:00
Simone Mainardi
823b4f5d91 Implements active monitoring with the new scheduler 2022-01-21 13:05:01 +01:00
Simone Mainardi
705807ad9d Reworks active monitoring plugin structure 2022-01-21 12:21:44 +01:00
Luca Deri
d25dae664e Reworked script checks periodicity to make sure active monitoring is executed when it should be
Some extra cleanup is necessary (#6224)
2022-01-20 11:14:18 +01:00
Matteo Biscosi
795125c814 Added alert to network discovery (#6218) 2022-01-19 16:17:30 +01:00
Matteo Biscosi
7f40147cf5 Added network discovery icon to the main page (#6218) 2022-01-19 11:17:54 +01:00
Luca Deri
d94bd3255e Fixes slow shutdown termination 2022-01-18 22:36:46 +01:00
Luca Deri
fcaa071acb Added delayed scripts that are executed with minimal time drift to avoid all scripts to be executed at the same time and thus cause load spikes 2022-01-03 18:55:18 +01:00
Luca Deri
fc0e204803 Reworked blog fetch into new callback file fetch_blog_feed.lua 2022-01-03 18:55:18 +01:00
Alfredo Cardigliano
257ece18c0 Copyright update (Lua) 2022-01-03 09:42:33 +01:00
Luca Deri
8c496e19e4 Fixed lua script warning (#6166) 2022-01-03 09:37:43 +01:00
Alfredo Cardigliano
4603f3f088 Disable debug messages 2021-12-30 14:48:05 +01:00
Luca Deri
2b58164f84 Invalid granularity specified 2021-12-29 19:19:07 +01:00
MatteoBiscosi
f4988abee8 Minor changes to merge readme and script name 2021-12-28 16:29:34 +01:00
MatteoBiscosi
6d401586cd Added changed files with merge 2021-12-28 15:59:13 +01:00