Closed ol3k closed 6 years ago
Hello, what ntopng version are you using? Please run ntopng --version
. Have you enabled the per host timeseries from the ntopng preferences?
Hi @emanuele-f
v.3.4.180621 [Enterprise/Professional build] GIT rev: 3.4-stable:fa4615f95326ff3db4ca5f59d2cee0f113a2d2d3:20180621 Pro rev: r1595 Built on: Debian GNU/Linux 9.1 (stretch) System Id: 68878E8276066B21 Platform: x86_64 Edition: Enterprise License Type: Demo
I enabled anthing in timeseries for testing purposes.
I think you are missing the -m
option. Since you are capturing from nprobe, you have to tell ntopng which are your local networks. For example -m="192.168.1.0/24,10.1.0.0/16"
. After this, a chart icon will happear under your local hosts.
Yes, thanks. That was missing. Now the chart icon and RRD files are available.
Another question not related to rrd, but I didn't find a solution yet:
Is there any possibility to just gather flows of specific nets in the collector modes? The --bpf-filter isn't working with ntopng or nprobe in collector-mode, the --collection-filter in nprobe seems to have no effect.
EDIT: after some reading: I think this could be addressed to https://github.com/ntop/ntopng/issues/1782 I will update to latest unstable version and report again later.
EDIT2: It seems that the nprobe collection-filter is still not working: nProbe v.8.5.180626 ($Revision: 6186 $) for x86_64-pc-linux-gnu with native PF_RING acceleration
nprobe -i none -n none --collection-filter "!172.16.0.0/12" -3 2055 --zmq tcp://127.0.0.1:5556
26/Jun/2018 13:58:27 [plugin.c:179] No plugins found in ./plugins 26/Jun/2018 13:58:27 [plugin.c:187] Loading 24 plugins [.so] from /usr/local/lib/nprobe/plugins 26/Jun/2018 13:58:27 [nprobe.c:3949] ERROR: Invalid nProbe license (/etc/nprobe.license) [Missing license file] 26/Jun/2018 13:58:27 [nprobe.c:3956] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:3957] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:3958] ERROR: Switching to DEMO MODE (missing valid license) 26/Jun/2018 13:58:27 [nprobe.c:3959] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:3960] ERROR: Purchase your nProbe license at 26/Jun/2018 13:58:27 [nprobe.c:3961] ERROR: https://shop.ntop.org/ 26/Jun/2018 13:58:27 [nprobe.c:3962] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:3963] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:5628] WARNING: The output interfaceId is set to 0: did you forget to use -Q perhaps ? 26/Jun/2018 13:58:27 [nprobe.c:5631] WARNING: The input interfaceId is set to 0: did you forget to use -u perhaps ? 26/Jun/2018 13:58:27 [nprobe.c:5718] Welcome to nProbe v.8.5.180626 ($Revision: 6186 $) for x86_64-pc-linux-gnu with native PF_RING acceleration 26/Jun/2018 13:58:27 [nprobe.c:5728] Running on Debian GNU/Linux 9.1 (stretch) 26/Jun/2018 13:58:27 [nprobe.c:5739] [LICENSE] nProbe SystemId: 68878E8276066B21 26/Jun/2018 13:58:27 [nprobe.c:5806] Sample rate [packet: 1][flow collection/export: 1/1] 26/Jun/2018 13:58:27 [nprobe.c:8443] ERROR: 26/Jun/2018 13:58:27 [nprobe.c:8444] ERROR: NOTE: This is a DEMO version limited to 25000 flows export. 26/Jun/2018 13:58:27 [nprobe.c:8445] ERROR: 26/Jun/2018 13:58:27 [modbusPlugin.c:100] [MODBUS] Idle flow timeout set to 120 sec 26/Jun/2018 13:58:27 [nprobe.c:8451] Welcome to nProbe v.8.5.180626 for x86_64-pc-linux-gnu 26/Jun/2018 13:58:27 [nprobe.c:7366] WARNING: Adding %EXPORTER_IPV4_ADDRESS to the template as nProbe is working as collector 26/Jun/2018 13:58:27 [plugin.c:1235] 0 plugin(s) enabled 26/Jun/2018 13:58:27 [nprobe.c:7936] Non IPv4/v6 traffic is discarded according to the template 26/Jun/2018 13:58:27 [util.c:465] GeoIP: loaded AS config file /usr/share/ntopng/httpdocs/geoip/GeoIPASNum.dat 26/Jun/2018 13:58:27 [util.c:476] GeoIP: loaded AS IPv6 config file /usr/share/ntopng/httpdocs/geoip/GeoIPASNumv6.dat 26/Jun/2018 13:58:27 [nprobe.c:8656] IPv6 traffic will NOT be exported/accounted by this probe 26/Jun/2018 13:58:27 [nprobe.c:8657] due to configuration options (e.g. use NetFlow v9) 26/Jun/2018 13:58:27 [nprobe.c:8658] Please use -V to set the version to other than NetFlow V5 26/Jun/2018 13:58:27 [nprobe.c:8809] Not capturing packet from interface (collector mode) 26/Jun/2018 13:58:27 [util.c:4566] Initializing ZMQ as server 26/Jun/2018 13:58:27 [util.c:4609] Succesfully created ZMQ endpoint tcp://127.0.0.1:5556 26/Jun/2018 13:58:27 [util.c:3644] nProbe changed user to 'nobody' 26/Jun/2018 13:58:27 [collect.c:144] Flow collector listening on port 2055 (IPv4/v6) 26/Jun/2018 13:58:27 [nprobe.c:9055] nProbe started successfully
Am I correct that we should see with e.g.:
nprobe -i none -n none --collection-filter "192.168.1.1" -3 2055 --zmq tcp://127.0.0.1:5556
just flows with source/destination 192.168.1.1?
Which is the collection filter you are using? The fix for that issue has been backported to stable, so if you have an updated nprobe it should work.
I try to filter a single proxy ip. In production environment there should be about 12 of /24s.
grep -v "#" /etc/nprobe/nprobe.conf -i=none -n=none --collection-filter="172.16.0.180/32" -3=2055 --zmq=tcp://127.0.0.1:5556
I've just tested the collection filter and it work properly for me. The filter above tells nprobe to only export traffic which has source IP or destination IP 172.16.0.180 .
Please note that you are using nprobe 8.5 (dev) with ntopng 3.4 (stable) and this is not recommended. Please stick with dev or stable releases only.
hmm that's bad :-(
During the nprobe update I updated ntopng, too.
This should be fine:
Welcome to ntopng x86_64 v.3.5.180626
Welcome to nProbe v.8.5.180626 ($Revision: 6186 $)
Any suggestions I can try?
That versions are ok now.
If you can provide a pcap file with the netflow traffic as seen by nprobe I can perform tests with your exact flows. If so, please send me a pcap at faranda@ntop.org . You can use tcpdump -i eth0 -s0 -w netflow.pcap
where eth0 is your nic to generate it. Please also use wireshark to verify that the pcap contains both netflow template and data.
I should capture on the listening port of nprobe the switch sends its data to?
0.0.0.0:2055 0.0.0.0:* 65534 2519954 11226/nprobe
btw: I played with the "--black-list" setting, it seems to work as expected. But I can't filter the needed /24s by blacklisting all others... I guess I need a working "--collection-filter"
Yes, something similar to tcpdump -i eth0 -s0 -w netflow.pcap udp port 2055
So sFlow is being used, not netflow. I've reproduced your issue, I've opened a bug. Please follow https://github.com/ntop/nProbe/issues/275 .
Hi,
I recently installed ntopng with nprobe.
It's looking fine but there are no rrd files for each host and the protocol statistics are showing an error.
What is wrong with this config? Thanks.