ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.18k stars 648 forks source link

Infrastrucure monitoring on Ubuntu 22.04 not working #8434

Closed atemix closed 3 months ago

atemix commented 3 months ago

ntopng 6.1.240603 (Ubuntu 22.04.4 LTS) ntopng 6.0.240603 (Rocky Linux release 8.8)

We have remote ntopng deployments on ubuntu and centos, and central deployment on ubuntu. Infrastructure monitoring works only from remote instance on centos to central on ubuntu. But it doesn't works from central ubuntu to any remote ntopng, doesn't matter centos or ubuntu it is. Check hangs on testing authentification.

Infrastucture monitoring on remote centos to central instance configured through https://IP_address, certificates from internal CA with IP in SAN. openssl s_client -connect [IP]:443 verified from any remore instance to core and vice verse.

image

atemix commented 3 months ago

In log: ntopng[128772]: 05/Jun/2024 23:08:26 [LuaEngine.cpp:1396] WARNING: Script failure [/usr/share/ntopng/scripts/lua/pro/rest/v2/check/infrastructure/config.lua][/usr/share/ntopng/scripts/lua/modules/dkjson.lua:397: bad argument #1 to 'strfind' (string expected, got nil)]

cardigliano commented 3 months ago

@atemix does it mean you are running different versions, stable on Rocky and dev on Ubuntu? IT would be better not to mix versions for different reasons (to avoid possible incompatibility, to help identifying if it depends on the version or the OS, etc.) Please also clarify what to/from means to make sure we get which direction is not working. Thank you

atemix commented 3 months ago

Hi @cardigliano, no, it's my mistake, central instance was downgraded to stable. All our deployments on 6.0.240603 Ubuntu / Rocky.

image

cardigliano commented 3 months ago

I ran a few tests in our lab, infrastructure monitoring seems to be actually working on Ubuntu 22.04.4 LTS, tested with both v.6.0.240603 and v.6.1.240528 in all combinations/directions. This is strange.

cardigliano commented 3 months ago

I realised HTTPS is used here, it may be related. Checking.

atemix commented 3 months ago

We have Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-83-generic x86_64) if it's important.

cardigliano commented 3 months ago

@atemix I think I found the root cause, "in Ubuntu 22.04 LTS curl is version 7.81.0, and fails in case of unexpected EOF with OpenSSL 3.0.x" as you can also read at https://stackoverflow.com/questions/72627218/openssl-error-messages-error0a000126ssl-routinesunexpected-eof-while-readin I pushed a workaround to make it work until a newer curl version is released in Ubuntu 22, a ntopng update will be available later today

atemix commented 3 months ago

@cardigliano Would this workaround available in stable branch?

cardigliano commented 3 months ago

Already available, try updating

atemix commented 3 months ago

@cardigliano AM works in any direction, thx fo help

cardigliano commented 3 months ago

Great, thank you.