Re: starting ntop errors and warnings
Alfredo Cardigliano <[email protected]>
| Newsgroups | gmane.linux.ntop.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Spiros please provide the output of: cat /proc/mounts / grep huge cat /sys/devices/system/node/node*/meminfo | grep Huge Alfredo > On 31 Aug 2017, at 18:53, Spiros Papageorgiou <[email protected]> wrote: > > Hi all, > > > I have an updated ntopng/pfring-zc installation and when I start ntopng the following messages are produced: > > Aug 30 18:05:06 server logger: ntopng start > Aug 30 18:05:08 server ntopng: [ViewInterface.cpp:50] ERROR: Internal Error: NULL interface [view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3][2] > Aug 30 18:05:08 server ntopng: [ViewInterface.cpp:50] ERROR: Internal Error: NULL interface [view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3][2] > Aug 30 18:05:08 server ntopng: [ViewInterface.cpp:50] ERROR: Internal Error: NULL interface [view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3][2] > Aug 30 18:05:08 server ntopng: [ViewInterface.cpp:50] ERROR: Internal Error: NULL interface [view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3][2] > Aug 30 18:05:08 server kernel: device ens160 entered promiscuous mode > Aug 30 18:05:09 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:05:11 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:05:11 server ntopng: Starting ntopng: Unable to start ntopng[FAILED] > Aug 30 18:05:11 server systemd: Started Start/stop ntopng program. > Aug 30 18:05:12 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:05:14 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:05:14 server kernel: traps: ntopng[2575] general protection ip:42df01 sp:7ff418f69b60 error:0 in ntopng[400000+264000] > Aug 30 18:05:15 server kernel: device ens160 left promiscuous mode > Aug 30 18:05:15 server systemd: ntopng.service: main process exited, code=killed, status=11/SEGV > > Why the view of all queues does not work? How should i write this line? > > When I delete from ntopng.conf, the "view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3" line, the I get another bunch of warnings: > > Aug 30 18:06:50 server systemd: Starting Start/stop ntopng program... > Aug 30 18:06:50 server logger: ntopng start > Aug 30 18:06:51 server kernel: device ens160 entered promiscuous mode > Aug 30 18:06:52 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:06:53 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:06:55 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:06:55 server ntopng: Starting ntopng: Unable to start ntopng[FAILED] > Aug 30 18:06:55 server systemd: Started Start/stop ntopng program. > Aug 30 18:06:56 server ntopng: [PF_RINGInterface.cpp:72] WARNING: Unable to set packet capture direction > Aug 30 18:06:57 server ZC[2647]: error opening /dev/hugepages/ens160@1-txrx: Permission denied > Aug 30 18:06:57 server ZC[2647]: error mmap'ing 49 hugepages of 2048 KB > Aug 30 18:06:58 server ZC[2647]: error opening /dev/hugepages/ens160@0-txrx: Permission denied > Aug 30 18:06:58 server ZC[2647]: error mmap'ing 49 hugepages of 2048 KB > Aug 30 18:06:58 server ZC[2647]: error opening /dev/hugepages/ens160@2-txrx: Permission denied > Aug 30 18:06:58 server ZC[2647]: error mmap'ing 49 hugepages of 2048 KB > Aug 30 18:06:58 server ZC[2647]: error opening /dev/hugepages/ens160@3-txrx: Permission denied > Aug 30 18:06:58 server ZC[2647]: error mmap'ing 49 hugepages of 2048 KB > Aug 30 18:07:01 server systemd: Started Session 6 of user root. > Aug 30 18:07:01 server systemd: Starting Session 6 of user root. > > The ntopng then, seems to be working but I would like to get rid of the errors. What should I do to avoid the hugepages errors? I'm running ntop as root (though I can see it drops privs). > > My conf: > > -G=/var/run/ntopng.pid > --data-dir=/mnt/data/ntopng > #--interface=zc:ens160 > --interface=zc:ens160@0 > --interface=zc:ens160@1 > --interface=zc:ens160@2 > --interface=zc:ens160@3 > #--interface=view:zc:ens160@0,zc:ens160@1,zc:ens160@2,zc:ens160@3 > --local-networks="xx.xx.0.0/16,xx.xx.cc.0/24,xx.xx.ff.0/22,xx.xx.vv.0/24" > --dns-mode=3 > --disable-autologout > --max-num-flows=512000 > --max-num-hosts=256000 > --sticky-hosts=none > -g -1 > > # cat /etc/ntopng/ntopng.start > # > > # cat /etc/pf_ring/hugepages.conf > node=0 hugepages=1024 > # cat /etc/pf_ring/pf_ring.conf > transparent_mode=2 > > # cat /etc/pf_ring/pf_ring.start > # cat /etc/pf_ring/zc/ixgbe/ixgbe.conf > RSS=0,0,0,0 > # cat /etc/pf_ring/zc/ixgbe/ixgbe.start > # > > > > Regards, > > Spiros > > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZqEIyAAoJEJuqoelgmdtxtTMP/2prMCbuF89cOX1w/Qm5nNSp ZxjqnII2Ct8ZnyNw5NTCMbVVguFzdc6xm3YDmYYEFZMSQH3jZEKZgxlkgnZ4C8qT qaf1qvLzVJs/xygTuuvrteKmM8KDOtZdeCHJVFRR9GspNE0vAfZYjuDDDtRSl5A4 JnxKIaNscNvoY3RTmQbMeLQbEdB95LOWP6LcDus52y3IwrxuxeWSu+5h4fV8fQXA G89uinWhCqYFGIzAFcIxW7xJxSmnGKLSr3F2sKC4MsuEZMkTnBUnhPU00kWyMage tRiF8qshoJMYq61J2wn7uM19L7hn+3rAubbhqRBftDd5gNUR1/XSpGpKm8EfA9qc f+3xJ8rsjRLFzJkWfXaQFpu9Wc59U0XQWHF18RiDLZZXWLcQn8BQr7UCE+gKkQ/x lKmmuYQ049BmgYxEfiHMXzXJ6MYVJDP7eWNq+S+B2Us7HMJ6txUrgkUoQLe53mQt KwSYZJUlaOh6rIQempjT/uurTfSoefjgLHY8czovPM9P/gsrlbhAO0aKUuD70yhf xuf1Jz4exO7M+BR3ipL9hAjcwEF/LBUz+/LbKUt5eI+cq2+wHemcaXo8693OsTYy Fke9iJ8y30CtwwDjYxJq+02JNgS1Ks1ELJP/LNssX23XggJ7iN+NCCqicjqM/TJ5 gkHrv1NySVpcsRhJa06i =yQq/ -----END PGP SIGNATURE-----