ntop / ntopng

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

Network matrix doesn't loading on ZMQ interface #8432

Closed atemix closed 2 months ago

atemix commented 4 months ago

ntopng v.6.0.240603 (Ubuntu 22.04.4 LTS)

On ZMQ (for nprobe) interface network matrix often doesn't loading, only sometimes it's shown. We can't identify a pattern when it's shown. On span interface always works well. Local networks defined through --local-networks=/etc/ntopng/local-networks.conf.

In browser console: network_stats.lua:746 Uncaught TypeError: Cannot read properties of undefined (reading 'data') at Object.click (network_stats.lua:746:55) at HTMLDivElement. (third-party.js?1717522204:2:752263)

image

DGabri commented 3 months ago

Hello there, on my side it seems that the network matrix is showing. It does not show if -m is not defined when starting ntopng. Could you please double check the content of the config and check that it is correct?

atemix commented 3 months ago

Hi @DGabri Network matrix works on span interface, but not on netflow interface in the same ntopng instance. Local networks configured through --local-networks=/etc/ntopng/local-networks.conf. If it were errors, matrix didn't working at all. But local netwotks counters showns correctly on both interfaces.

SPAN

ntopng-matrix-span

Netflow

ntopng-matrix-netflow

DGabri commented 3 months ago

I see, I will check and let you know, thanks for the additional info

DGabri commented 3 months ago

Hi there, we tested and were never able to reproduce this error, could you please provide a browser console screenshot when the error happens and also provide a screenshot of the code that opens if you click on the error in console? An example of screenshot that you should click on is shown below. You have to click on the link on the right, githubBase etc in the photo,. The ntopng error will of course be different but located on the same position Thank you

Screenshot 2024-06-21 at 09 58 20

atemix commented 3 months ago

Hi @DGabri

No errors on page loading:

image

After clicking on matrix place:

image image

MatteoBiscosi commented 3 months ago

Hi @atemix please update in a couple of hours and let me know

atemix commented 3 months ago

@MatteoBiscosi, no matrix on zmq interface after update, and no any errors in console.

image

lucaderi commented 2 months ago
Screenshot 2024-08-03 at 21 37 21

Just checked: it works for us