Commit graph

359 commits

Author SHA1 Message Date
Luca Deri
55d8e299fa Cleanued up code for flow score 2020-09-23 10:51:36 +02:00
Alfredo Cardigliano
fcfd9b3a2a Replace pcap_lookupdev (deprecated) with Utils::ntop_lookupdev 2020-09-14 13:20:49 +02:00
Simone Mainardi
224fc4f6b2 Better handling of HTTP JSON post errors 2020-09-11 18:38:23 +02:00
lucaderi
abd06868b2 Compilation fix 2020-09-04 14:42:58 +02:00
Simone Mainardi
e1f07e1787 Fixes email test button logs on console with no visual feedback
Fixes #4355
2020-09-03 16:30:34 +02:00
Simone Mainardi
b6667086ca Fixes email plugin not using CC
Fixes #4364
2020-09-03 14:45:56 +02:00
Alfredo Cardigliano
a034c72012 Add Utils::ifname2devname to convert pf_ring ifname into linux ifname 2020-09-03 10:50:22 +02:00
Luca Deri
c7583a2991 Fix to handle system() return code 2020-09-01 23:19:57 +02:00
Luca Deri
7b9b692244 Utils::httpGetPost now uses conten type application/json in case a JSON(-like) string is posted 2020-08-31 22:02:37 +02:00
Simone Mainardi
1ff3308ccf Fixes possibly uninitialized variables 2020-08-22 16:38:07 +02:00
Luca Deri
6e4b27cee8 Fixed invalid CPU captialization 2020-07-29 10:17:55 +02:00
Simone Mainardi
1baa7d6cc4 Avoids double 5-sec HT-walks to update stats 2020-07-27 14:22:59 +02:00
lucaderi
13a67443fa Uses rework 2020-07-22 00:21:02 +02:00
Alfredo Cardigliano
3d4a072875 Syslog device name normalization (case insensitive match) (fix #4026) 2020-06-09 11:51:25 +02:00
Simone Mainardi
5b6c9e2299 Fixes nEdge valid interface names 2020-05-22 18:24:17 +02:00
Simone Mainardi
abfa5d1152 Enforces strict interface names check on any non-Win32 2020-05-22 16:43:04 +02:00
Simone Mainardi
43ef30cbe5 Enforces strict interface names check on linux only 2020-05-22 16:41:03 +02:00
Simone Mainardi
4eb8c10207 Enforces strict validation on default interfaces to prevent injections 2020-05-22 14:33:28 +00:00
Simone Mainardi
a9611e719f Minor fix 2020-05-22 13:58:45 +02:00
Simone Mainardi
337637b1d8 Unifies interfaces enumeration across the whole code 2020-05-22 13:52:48 +02:00
Alfredo Cardigliano
56a505eaed Disable ifaces offloads via ethtool ioctl 2020-05-21 23:19:17 +02:00
Simone Mainardi
1843bb95d7 Fixes possible crash when printing ntopng help 2020-05-21 08:44:25 +00:00
Luca Deri
ad576c135c Win fixes 2020-04-28 13:25:48 +02:00
Luca Deri
9fabefe2cf Simplified houskeeping loop 2020-04-27 19:16:10 +02:00
emanuele-f
9458493f46 Do not use capabilities when privileges are not dropped
Dropping capabilities without setting the CAP_PERMITTED results in the inability to regain the
capabilities. This could occur when the --dont-change-user flag was set or when the capabilities were
used before dropping the privileges (e.g. in Ping).
2020-04-27 17:26:39 +02:00
emanuele-f
790dd39179 Fix mismatched free/delete when using Nagios 2020-04-09 10:29:52 +02:00
emanuele-f
9677a326fb Fix error message 2020-04-09 10:02:54 +02:00
emanuele-f
bdad29556a Fix working dir and lock file creation
Fixes #3718
2020-04-09 09:58:41 +02:00
emanuele-f
be0c0a9566 Fix invalid POST size due to text-mode file open
Opening the file in text mode causes Windows to convert \r\n characters
to a single \n, so an invalid size is reported.

Should address #3603
2020-03-23 15:19:04 +01:00
emanuele-f
f5ea87910a Fix bad RTT timeseries metric and avoid HTTP 100
Should address #3603
2020-03-23 11:58:30 +01:00
Luca Deri
cf7c5b2c9c Fixes #3598 2020-03-20 13:24:11 +01:00
Luca Deri
49c80c4615 Win changes 2020-03-20 09:50:36 +01:00
emanuele-f
26520abf34 Add IPv6 support in HTTP monitor and don't follow the redirects
Fixes #3560
Fixes #3554
2020-03-16 11:23:37 +01:00
emanuele-f
24d06fa7bf Fix leak when return_content is false 2020-03-13 19:20:41 +01:00
emanuele-f
0be214cfae Implement HTTP RTT Monitoring 2020-03-13 19:03:33 +01:00
Simone Mainardi
7b4bdfcf4a Fixes multiple schedules of delayed periodic activities 2020-03-06 14:48:50 +01:00
Simone Mainardi
f3a8efdf73 Fixes certain periodicity calculations and adjust to localtime
Additional fix for #3512
2020-03-05 13:03:37 +01:00
Simone Mainardi
8d8cf6678e Fixes periodic scripts start time with certain timezones
Fixes #3512
Partially addresses #351
2020-03-05 12:26:41 +01:00
emanuele-f
c8224a535a Fix socket leak in ZMQ interfaces 2020-03-03 14:36:26 +01:00
Alfredo Cardigliano
765474fa70 Option -F nindex;{dump,load} to dump and load json flows (for debugging only) 2020-02-27 18:51:59 +01:00
Alfredo Cardigliano
731278448a Handle stats from multiple ZMQ producers in the same endpoint (fix #3409) 2020-02-18 12:26:50 +01:00
Alfredo Cardigliano
9ff35cb5f1 Country code to u16 2020-01-08 15:03:24 +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
Alfredo Cardigliano
2a3bef9d6c Replace JSON string with TLV for alerts generated by the datapath. This removes a JSON decode in housekeeping.lua (#3148) 2019-12-27 17:03:28 +01:00
Luca Deri
06e8c4a546 Ticks calcoluation is now optimized as it might lead to return 0 or out
of range values
2019-12-26 22:43:28 +01:00
Luca Deri
941c017ac1 Compilation fixes 2019-12-20 12:06:57 +01:00
Alfredo Cardigliano
65da842176 Add ntopng service restart to the menu 2019-12-19 18:08:22 +01:00
Simone Mainardi
578d96c674 Implements names for thread pool worker threads 2019-12-12 13:02:09 +01:00
emanuele-f
bb0974a645 Ensure that permissions on plugins files are correct 2019-12-11 18:38:42 +01:00
Luca Deri
f10a5c335d Merge branch 'dev' of https://github.com/ntop/ntopng into dev 2019-11-26 09:28:52 +01:00