# LUA_PATH=/usr/share/ntopng/scripts/lua/modules/?.lua sudo -u ntopng /usr/bin/ntopng -i bond0 -m 192.168.0.0/16 -d /var/lib/ntopng -w 3001 04/Mar/2015 17:38:10 [Ntop.cpp:586] Setting local networks to 192.168.0.0/16 04/Mar/2015 17:38:10 [Redis.cpp:74] Successfully connected to Redis 127.0.0.1:6379 04/Mar/2015 17:38:10 [Ntop.cpp:710] Registered interface bond0 [id: 0] 04/Mar/2015 17:38:10 [Utils.cpp:233] Privileges are not dropped as we're not superuser 04/Mar/2015 17:38:10 [main.cpp:184] PID stored in file /var/tmp/ntopng.pid Error Opening file /usr/share/ntopng/httpdocs/geoip/GeoIPASNum.dat 04/Mar/2015 17:38:10 [Geolocation.cpp:59] WARNING: Unable to read GeoIP database /usr/share/ntopng/httpdocs/geoip/GeoIPASNum.dat Error Opening file /usr/share/ntopng/httpdocs/geoip/GeoIPASNumv6.dat 04/Mar/2015 17:38:10 [Geolocation.cpp:59] WARNING: Unable to read GeoIP database /usr/share/ntopng/httpdocs/geoip/GeoIPASNumv6.dat Error Opening file /usr/share/ntopng/httpdocs/geoip/GeoLiteCity.dat 04/Mar/2015 17:38:10 [Geolocation.cpp:59] WARNING: Unable to read GeoIP database /usr/share/ntopng/httpdocs/geoip/GeoLiteCity.dat Error Opening file /usr/share/ntopng/httpdocs/geoip/GeoLiteCityv6.dat 04/Mar/2015 17:38:10 [Geolocation.cpp:59] WARNING: Unable to read GeoIP database /usr/share/ntopng/httpdocs/geoip/GeoLiteCityv6.dat 04/Mar/2015 17:38:10 [HTTPserver.cpp:351] HTTPS Disabled: missing SSL certificate /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem 04/Mar/2015 17:38:10 [HTTPserver.cpp:352] Please read https://svn.ntop.org/svn/ntop/trunk/ntopng/README.SSL if you want to enable SSL. 04/Mar/2015 17:38:10 [HTTPserver.cpp:389] Web server dirs [/usr/share/ntopng/httpdocs][/usr/share/ntopng/scripts] 04/Mar/2015 17:38:10 [HTTPserver.cpp:392] HTTP server listening on port 3001 04/Mar/2015 17:38:10 [main.cpp:232] Working directory: /var/lib/ntopng 04/Mar/2015 17:38:10 [main.cpp:234] Scripts/HTML pages directory: /usr/share/ntopng 04/Mar/2015 17:38:10 [Ntop.cpp:206] Welcome to ntopng x86_64 v.1.2.1 (r1.2.1) - (C) 1998-14 ntop.org 04/Mar/2015 17:38:10 [PeriodicActivities.cpp:53] Started periodic activities loop... 04/Mar/2015 17:38:10 [RuntimePrefs.cpp:32] Dump alerts into syslog 04/Mar/2015 17:38:10 [NetworkInterface.cpp:800] Started packet polling on interface bond0 [id: 0]... 04/Mar/2015 17:38:10 [PcapInterface.cpp:169] Terminated packet polling for bond0 PANIC: unprotected error in call to Lua API (/usr/share/ntopng/scripts/lua/modules/dkjson.lua:696: module 'lpeg' not found: no field package.preload['lpeg'] no file '/usr/share/ntopng/scripts/lua/modules/lpeg.lua' no file '/usr/share/ntopng/scripts/lua/modules/lpeg.lua' no file './lpeg.lua' no file '/usr/local/share/luajit-2.0.3/lpeg.lua' no file '/usr/local/share/lua/5.1/lpeg.lua' no file '/usr/local/share/lua/5.1/lpeg/init.lua' no file './lpeg.so' no file '/usr/local/lib/lua/5.1/lpeg.so' no file '/usr/local/lib/lua/5.1/loadall.so') Would be possible to configure ntopng to use geoip database shipped by dev-libs/geoip? Also I noticed that ntopng is started as user ntopng, it looks that ntopng can't grap trffic from interface. Reproducible: Always Portage 2.2.14 (python 2.7.5-final-0, default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64) ================================================================= System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_G850_@_2.90GHz-with-gentoo-2.2 KiB Mem: 4023120 total, 153472 free KiB Swap: 1048572 total, 1036640 free Timestamp of tree: Wed, 04 Mar 2015 09:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-lang/perl: 5.16.3 dev-lang/python: 2.7.5-r3, 3.3.3 dev-util/cmake: 2.8.11.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fno-unwind-tables -fno-asynchronous-unwind-tables" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -fno-unwind-tables -fno-asynchronous-unwind-tables" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-O" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" USE="acl acpi amd64 bash-completion caps cli crypt cxx dri iconv iproute2 libav logrotate mmap mmx modules multilib ncurses nls nptl openmp pam pcre profile readline session sharedmem sse sse2 ssl threads threadsafe unicode urandom vim vim-pager vim-syntax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Old version, not in the tree anymore