Commit graph

41 commits

Author SHA1 Message Date
Alfredo Cardigliano
9352d0cdcd Update copyright 2025-01-02 09:09:56 +01:00
Luca Deri
ab4e49939e Reworked periodic activities 2024-02-17 13:23:20 +01:00
Luca Deri
2edb8bc3ab Added daily delayed activities 2024-02-11 22:04:22 +01:00
Luca Deri
774e9d4244 Added ability to forxe daily script schedule (debug only) 2024-02-04 10:47:57 +01:00
Luca Deri
55870e97b9 (C) Update 2024-01-12 11:44:18 +01:00
lucaderi
d395deac4e Automated commit of clang-format CI changes. 2023-04-07 14:20:44 +00:00
Luca Deri
f726b867c7 Updated (C) 2023-01-01 16:37:57 +01:00
Luca Deri
99425f3416 Reworked periodic activities 2022-01-03 13:34:49 +01:00
Alfredo Cardigliano
f2060f2488 Copyright update (C) 2022-01-03 09:35:09 +01:00
MatteoBiscosi
e92135e776 Reorganized periodic scripts 2021-12-28 15:41:28 +01:00
Simone Mainardi
cf9d05f955 Implements support for the execution of pro Lua callbacks 2021-11-26 13:31:21 +01:00
Luca Deri
ce99e80c7e Updated scripts duration 2021-11-23 11:09:16 +01:00
Luca Deri
d8a1c63f48 Removed reusable VMs 2021-10-20 13:31:33 +02:00
Simone Mainardi
ee58f52c51 Refactors user_scripts to checks (c++) 2021-06-16 19:06:29 +02:00
Luca Deri
a1178a0791 Updated (C) 2021-01-02 12:08:23 +01:00
Simone Mainardi
55993e8d9b Makes threads for periodic activities load-adaptive
Addresses #4736
2020-11-17 11:59:34 +01:00
Simone Mainardi
5133af720f Reworks view interfaces with queues; rework idling and flow hooks exec 2020-09-29 18:30:10 +02:00
Simone Mainardi
5e7f2cfff4 Implements thread for notifications handling 2020-09-09 12:16:51 +02:00
Simone Mainardi
99366d6ee3 Optimizes execution of user scripts (avoids multiple hosts HT walks) 2020-07-29 14:45:52 +02:00
Luca
31466a9832 Reworked periodic activities thread pool 2020-03-04 19:37:59 +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
Luca Deri
517184c2aa Reworked thread pool assignment 2020-02-26 08:28:10 +01:00
Simone Mainardi
55cdb6c5ea Reworks slow rrd calc for periodic activites 2020-02-25 13:30:10 +01:00
Simone Mainardi
1cd375d756 Implements per-activity rrd writes duration 2020-02-19 15:34:29 +01:00
Luca Deri
57e6a93065 Improved scheduling algorithm to guarantee minimum service time when number of entries allow
Updated (C)
2020-01-06 23:36:36 +01:00
emanuele-f
c74fa6e908 Implement reusable lua engine
The same Lua vm is now reused. After 5 minutes the vm is destroyed and
reloaded to prevent memory to grow too much. inotify is used to detected
changes in the filesystem (partially implemented, must implement a recursive
watch)

This optimizes periodic scripts calls by a 10x factor.
2019-12-24 18:35:58 +01:00
Luca Deri
84bf948f0f Reworked thread handling policy 2019-11-01 12:15:08 +01:00
Simone Mainardi
dc748b1b6d Implements stats for periodic scripts duration 2019-10-28 17:10:03 +01:00
Luca Deri
bedff2c8e2 Updated (C) 2019-01-07 19:28:49 +01:00
Luca
2e8e39851a Improved termination tracings 2018-09-12 08:43:16 +02:00
Luca Deri
f0c936c368 Updated (C) to 2018 2018-03-22 21:59:42 +01:00
Simone Mainardi
22cc759e25 Scaffolding code for implementing per-interface threaded activities 2017-06-29 11:13:57 +02:00
Simone Mainardi
386de8570f Fix scheduled time for daily activities
Daily activities were executed alwasy at midnight UTC and not at midnight localtime. This commit fixes the issue and fixes #1028
2017-03-13 11:31:26 +01:00
emanuele-f
adf62c7f65 Add periodic five minutes script 2017-03-03 11:29:32 +01:00
Luca
30e1a75f98 (C) update 2017-01-10 15:03:16 -08:00
Luca
80c1a0a4dd Implemented initial slack.com integration for delivering alerts 2016-11-22 17:40:00 +01:00
Simone Mainardi
85c5beb545 Implements alerts on a per-interface per-vlan basis
Interfaces were handled globally before this commit. Now
alerts can be configured per-interface. So for example alerts
for the same host 193.168.2.1 can be handled differently on multiple interfaces.

Old alerts configured should be automatically migrated thanks to script startup.lua

This commits also paves the way to introduce stateful alerts in the professional version
2016-07-27 22:10:17 +02:00
Luca
4267c60542 Fixed #268: now the minute script should be called correctly 2016-01-15 16:32:04 -06:00
Luca Deri
d7c452f0a3 Moved to 2016 2016-01-01 09:27:39 +01:00
Luca Deri
ca289802b6 Further improvements to make periodic scripts more accurate in execution time (#263) 2015-11-14 09:27:25 +01:00
Luca Deri
b178cf4121 Added travis file for code testing
Added .gitignore file for ignoring selected files
Reworked src and include paths to organize the source better
Fixed bug with invalid git version caused in some settings that do not compile code extracting it from github
2015-05-01 19:40:52 +02:00
Renamed from PeriodicActivities.h (Browse further)