Alfredo Cardigliano
9352d0cdcd
Update copyright
2025-01-02 09:09:56 +01:00
Luca Deri
0f87148baa
Renamed member a the term 'requires' is a reserved word
2024-07-26 13:24:20 +02:00
Luca Deri
c637e975bd
Code cleanup
2024-02-19 11:30:15 +01:00
Luca Deri
36aa52c85c
Code cleanup
2024-02-19 11:08:52 +01:00
Luca Deri
a1a3dbe1b9
Added cyclic require check
2024-02-19 09:57:48 +01:00
Luca Deri
68a38a8796
Code cleanup
2024-02-17 21:31:50 +01:00
Luca Deri
73283fce82
Added NtopLuaContext class
2024-02-13 17:52:16 +01:00
Luca Deri
91a94c24e7
Optimized scripts
2024-02-12 18:06:03 +01:00
Luca Deri
4ea3a9bd4f
Enhanced memory checks
2024-02-12 18:06:03 +01:00
Luca Deri
e81058a7ba
Cloud improvements
2024-01-13 11:01:49 +01:00
Luca Deri
55870e97b9
(C) Update
2024-01-12 11:44:18 +01:00
Luca Deri
ca4ad2c5aa
Improced cloud support
2023-11-14 00:09:22 +01:00
Luca Deri
0824e4e874
Added lua_push_str_len_table_entry
...
Fixed possible crash due to invalid string lenght
2023-08-03 11:01:21 +02:00
lucaderi
d395deac4e
Automated commit of clang-format CI changes.
2023-04-07 14:20:44 +00:00
Luca Deri
1f8ec13532
Fixes inhability to run privileged scripts during startup
2023-02-24 18:24:04 +01:00
Luca Deri
05ecf9eb90
Remove un-necessary VLANid type in order to simplify code and avoid un-necessary and's
2023-02-20 22:30:12 +01:00
Luca Deri
f726b867c7
Updated (C)
2023-01-01 16:37:57 +01:00
Luca Deri
309d17b6b8
Implemented CustomFlowLuaScript.cpp engine
2022-11-20 20:30:49 +01:00
Luca Deri
61d33f673a
Improved hosts map
2022-04-27 22:42:33 +02:00
Alfredo Cardigliano
19310ffd06
Initial cleanup of useless consts towards migration to modern C++ ( #6271 )
2022-02-03 15:57:34 +01:00
Alfredo Cardigliano
f2060f2488
Copyright update (C)
2022-01-03 09:35:09 +01:00
Luca Deri
9bd28b1f54
Added code for tracking C functions that do not fill up the Lua state properly. In case of issues
...
detected, the misbehaving function is reported on the screen for easy patching. Fixed a couple
of functions that were not setting the return state properly.
Lua VMs are reset before reuse.
Minor code cleanup and rename (Vm -> VM).
2021-10-14 19:03:18 +02:00
Simone Mainardi
2e6068bdef
Fixes selection and XSRF when changing the observation point
2021-09-23 16:05:55 +02:00
Luca Deri
846d24c5e9
Initial VLANid rework
2021-06-15 23:01:59 +02:00
Simone Mainardi
09f9254aa7
Prevents non-admins to switch to system interface
...
Partially addresses #5324
2021-05-25 17:04:51 +02:00
Luca Deri
a1178a0791
Updated (C)
2021-01-02 12:08:23 +01:00
Luca Deri
2ef29c7c5e
Cleanup code removing .inc files
2020-11-25 22:05:06 +01:00
Luca Deri
94076c9976
SNMP improvements
2020-06-16 20:05:08 +02:00
Luca Deri
8c948de437
SNMP code reorganization
2020-05-25 23:50:36 +02:00
Luca Deri
3ef493a2b2
Added ping tracings
2020-05-07 16:45:58 +02:00
emanuele-f
6b4c507492
Move CSRF token from request to session
...
Now the CSRF token is bound to the user session.
This addresses the issues outlined in #3866 , in particular the CSRF expiration issues.
2020-05-06 13:04:12 +02:00
Simone Mainardi
1cd375d756
Implements per-activity rrd writes duration
2020-02-19 15:34:29 +01:00
Simone Mainardi
0e64fd94d6
Implements deadlines for periodic and user scripts
2020-02-18 18:44:41 +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
458a773a93
Refactor internal scripts for cleaner code
2019-12-31 16:53:32 +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
Alfredo Cardigliano
d69276396f
Replace Interfaces dropdown with Interface stats link and interface selector
2019-11-27 17:28:48 +01:00
Simone Mainardi
9cb566ed41
Computes lua scripts deadlines in C to prevent missing scheduled activities
2019-11-19 13:02:13 +01:00
Simone Mainardi
661f897898
Implements instrumentation to monitor lua flow callbacks
2019-09-17 17:42:54 +02:00
Simone Mainardi
968e21d984
Implements flow lua callbacks in the periodic activities thread
2019-09-12 15:36:41 +02:00
Simone Mainardi
91163ed4e2
Fixes Lua script failures when loading alerts/flow.lua
2019-09-02 10:53:36 +02:00
emanuele-f
20d2d929c7
Fix missing interface alerts
...
Fixes #2770
Fixes #2769
2019-08-19 11:20:29 +02:00
Luca
6f95b32eae
Alert triggering optimisation
2019-08-15 21:20:39 +02:00
Simone Mainardi
a5bf74b2b6
Makes AlertCheckLuaEngine a subclass of LuaEngine
2019-07-18 17:27:57 +02:00
Simone Mainardi
54c1df4b4d
Implements class AlertCheckLuaEngine and refactors code
2019-07-18 17:01:05 +02:00
emanuele-f
c117f20e19
Initial rework for in-memory alerts
2019-07-16 19:25:09 +02:00
Simone Mainardi
fbc74bf423
Initial implementation of network alerts (wip)
2019-07-09 19:33:27 +02:00
Luca
76ef993dfe
Reworked alerts
2019-07-07 15:09:24 +02:00
Simone Mainardi
a47480c720
Removes unnecessary dynamic_cast for a virtual method call
2019-05-14 23:11:50 +02:00
Simone Mainardi
c586eb106d
Adds forward declaration of ZMQParserInterface to LuaEngine
2019-05-14 22:36:17 +02:00