Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastrucure monitoring on Ubuntu 22.04 not working #8434

Closed
atemix opened this issue Jun 4, 2024 · 11 comments
Closed

Infrastrucure monitoring on Ubuntu 22.04 not working #8434

atemix opened this issue Jun 4, 2024 · 11 comments
Assignees
Labels
Ready to Test a feedback is needed on a proposal or implementation

Comments

@atemix
Copy link

atemix commented Jun 4, 2024

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
Copy link
Author

atemix commented Jun 5, 2024

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
Copy link
Member

@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
Copy link
Author

atemix commented Jun 6, 2024

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

image

@cardigliano
Copy link
Member

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
Copy link
Member

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

@atemix
Copy link
Author

atemix commented Jun 10, 2024

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

cardigliano added a commit that referenced this issue Jun 11, 2024
@cardigliano
Copy link
Member

@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
Copy link
Author

atemix commented Jun 13, 2024

@cardigliano Would this workaround available in stable branch?

cardigliano added a commit that referenced this issue Jun 13, 2024
@cardigliano
Copy link
Member

Already available, try updating

@cardigliano cardigliano added the Ready to Test a feedback is needed on a proposal or implementation label Jun 13, 2024
@atemix
Copy link
Author

atemix commented Jun 13, 2024

@cardigliano AM works in any direction, thx fo help

@atemix atemix closed this as completed Jun 13, 2024
@cardigliano
Copy link
Member

Great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to Test a feedback is needed on a proposal or implementation
Projects
None yet
Development

No branches or pull requests

2 participants