Commit graph

279 commits

Author SHA1 Message Date
Luca Deri
599835c72f Reworked IEC104 implementation 2020-11-27 22:34:50 +01:00
matteo
f496b4e660 Moved localhost tree from AddressResolution.h to Ntop.h and removed AddressList class 2020-11-27 12:21:03 +01:00
Luca Deri
2ef29c7c5e Cleanup code removing .inc files 2020-11-25 22:05:06 +01:00
Luca Deri
2884cc9794 Reworked Doh/DoT handling 2020-11-11 18:55:12 +01:00
Matteo Biscosi
5a8fd8efd7
Fixes #2115 and added shell script user guide (#4702)
* Added shell endpoint user guide

* Fixes #2115 std::new exceptions not always handled

* Removed a nothrow due to the insert of a try-catch statement

* Trying to implement #4421

Co-authored-by: matteo <biscosi@ntop.org>
2020-11-11 12:28:18 +01:00
Luca Deri
dc072833ee Win fixes 2020-10-27 20:57:05 +01:00
Simone Mainardi
30f46a15da Misbehaving flows cleanup 2020-10-16 11:28:46 +02:00
Luca Deri
3af2b10a9f Reworked service and periodic map 2020-10-11 14:47:31 +02:00
Alfredo Cardigliano
fc8357ce6f Add support for Syslog stats (backend and lua API) 2020-10-09 12:00:55 +02:00
Simone Mainardi
8bf82dd0cb Implements stats page for interface queue drops monitoring 2020-10-08 12:52:55 +02:00
Luca Deri
80dfd37e04 Reworked baheviour analysis code 2020-09-28 12:55:37 +02:00
Luca Deri
dd50729bc3 Added condvar to SPSC queue to avoid active wait 2020-09-27 16:54:54 +02:00
Alfredo Cardigliano
2848d17b29 Move include 2020-09-08 18:04:34 +02:00
Simone Mainardi
3f2fa953aa Implements in-memory recipient queues 2020-09-07 17:54:14 +02:00
Alfredo Cardigliano
7b6bf76ba6 Add include for hw bypass support 2020-09-02 17:41:42 +02:00
Simone Mainardi
5fbe012134 Implements in-memory counters for alert queues and shows them in the UI 2020-09-01 17:42:03 +02:00
Luca Deri
1255158fe8 Compilation fix for the community build 2020-08-07 17:34:33 +02:00
Luca Deri
75efc0ec0c Partial fix (community code is now clean) for #2533
Reworked inteface disaggregation
Moved to attic some unused classes
Added ability to disaggregate also for Probe IP + Ingress Interface
2020-08-07 17:20:26 +02:00
Alfredo Cardigliano
bde41ff4b7 Cleanup nagios code 2020-07-28 11:33:04 +02:00
lucaderi
07f948a310 Added g++ 4.8 check 2020-07-22 00:31:32 +02:00
lucaderi
aea73b0591 Added clang check 2020-07-22 00:27:29 +02:00
lucaderi
e38156619d Added g++ check 2020-07-22 00:23:52 +02:00
lucaderi
13a67443fa Uses rework 2020-07-22 00:21:02 +02:00
Alfredo Cardigliano
0a84d0706e Add DSCP stats to the host, new DSCPStats class 2020-07-17 18:05:11 +02:00
Luca Deri
40689081c7 Implemented periodicity stats 2020-07-17 13:12:53 +02:00
Luca Deri
1f2f1fd25d BA improvemements 2020-07-14 18:14:59 +02:00
Luca Deri
f2c3ee137c Host stats cleanup 2020-07-13 23:56:46 +02:00
Alfredo Cardigliano
354866d16a Remove aggregated flows 2020-07-03 17:17:33 +02:00
Luca Deri
9445dcb6b8 Introduced cardinality count 2020-06-12 08:11:05 +02:00
emanuele-f
ec51278c20 Cleanup of HostStats 2020-05-20 17:05:30 +02:00
emanuele-f
340462ad73 Cleanup of the timeseries ring and NetworkInterfaceTsPoint 2020-05-20 15:18:03 +02:00
Luca Deri
5dff31aeb2 ContinuousPing code cleanup 2020-04-29 18:42:04 +02:00
Luca Deri
e7eaf6ae36 Implemented continuous ping 2020-04-27 00:01:46 +02:00
Luca Deri
168d8548bc Fixed nDPI include file 2020-04-07 22:02:42 +02:00
Simone Mainardi
43284e22f8 Fixes crash and removes unused PortContactStats
Class was not used and didn't handle concurrent accesses to strings,
yielding crashes such as

Thread 14 "stats_update.lu" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb3fff700 (LWP 25268)]
0x00005555556b9183 in IpAddress::intoa (this=0x28c, buf=0x7fffb3ffe030 "", bufLen=64, bitmask=255 '\377') at src/IpAddress.cpp:352
352     src/IpAddress.cpp: No such file or directory.
(gdb)
(gdb) bt
    at src/GenericHash.cpp:222
    #9  0x00005555556c0413 in NetworkInterface::walker (this=0x555556159e70, begin_slot=0x7fffb3ffe454, walk_all=true, wtype=walker_flows, walker=0x5555556c6b79 <host_flow_update_stats(GenericHashEntry*, void*, bool*)>,
        user_data=0x7fffb3ffe458) at src/NetworkInterface.cpp:795
	#10 0x00005555556c6f7c in NetworkInterface::periodicStatsUpdate (this=0x555556159e70, vm=0x7fffac0a5578) at src/NetworkInterface.cpp:2589
	#11 0x0000555555671d62 in ntop_periodic_stats_update (vm=0x7fffac0a5578) at src/LuaEngine.cpp:6304
	#12 0x000055555576c2f6 in luaD_precall ()
	#13 0x0000555555777acd in luaV_execute ()
	#14 0x000055555576c5cf in luaD_call ()
	#15 0x000055555576c621 in luaD_callnoyield ()
	#16 0x000055555576ba42 in luaD_rawrunprotected ()
	#17 0x000055555576c91b in luaD_pcall ()
	#18 0x0000555555769cd4 in lua_pcallk ()
	#19 0x0000555555681e8a in LuaEngine::run_loaded_script (this=0x7fffac01fe10) at src/LuaEngine.cpp:12188
	#20 0x000055555563eca2 in ThreadedActivity::runScript (this=0x555562aee4e0, now=1585309410, script_path=0x7fff88002620 "/usr/share/ntopng/scripts/callbacks/interface/stats_update.lua", iface=0x555556159e70, deadline=1585309420)
	    at src/ThreadedActivity.cpp:418
	    #21 0x00005555556ba04d in ThreadPool::run (this=0x5555624525a0) at src/ThreadPool.cpp:103
	    #22 0x00005555556b9c79 in doRun (ptr=0x5555624525a0) at src/ThreadPool.cpp:31
	    #23 0x00007ffff65aa6db in start_thread (arg=0x7fffb3fff700) at pthread_create.c:463
	    #24 0x00007ffff3ea388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
2020-03-27 13:36:51 +01:00
Luca Deri
05741d6449 Win changes 2020-03-20 10:18:24 +01:00
Luca Deri
49c80c4615 Win changes 2020-03-20 09:50:36 +01:00
Luca Deri
e74d15b425 Win fixes 2020-03-12 11:14:59 +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
9fd86de371 Reworks timeseries export into classes {InfluxDB,RRD}TimeseriesExporter 2020-02-29 18:25:33 +01:00
Alfredo Cardigliano
d83b2fb0ba Option to dump json flows to disk with -F nindex;debug 2020-02-26 16:34:46 +01:00
emanuele-f
4c66c55103 Fix leaks in AlertsQueue when queue is full 2020-02-13 11:58:25 +01:00
Luca
a285f42324 Split Bin.h into several files 2020-02-03 09:41:40 +01:00
Luca Deri
70dc07c3f1 ArpMatrix code moved to attic 2020-01-30 09:57:32 +01:00
Luca Deri
e55854aaff Initial work on host bins 2020-01-27 11:55:00 +01:00
emanuele-f
566b9ece0b Score changes
- Move score from status definition to user scripts
- Separate flow score counter from the peers score
- Create a new HostScore class to hold the score data
2020-01-16 18:11:14 +01:00
emanuele-f
c336cca0e7 Improve host score calculation 2020-01-15 18:42:48 +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
Simone Mainardi
7a2def354a Moves unused code to attic 2019-12-31 16:07:09 +01:00
Simone Mainardi
fb7f2d553e Implements scanners detection using radix trees 2019-12-30 20:13:44 +01:00