Hi Emanuele, Thanks for that! I tried your steps and the installation is error-free once again :)
All the best! ROBERT WILLIAMS TECHNICAL DIRECTOR Custodian Data Centres Tel: +44 (0) 1622 230382 || E-Mail: mailto:[email protected] http://www.CustodianDC.com Disclaimer: https://www.CustodianDC.com/email-disclaimer Registered Office: Vinters Business Park, New Cut Rd, Maidstone, ME14 5NZ. Company Number: 07878023 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Emanuele Faranda Sent: 12 April 2017 00:00 To: [email protected] Subject: Re: [Ntop] Various Interface Name Errors Hi Robert, What it the exact version number of ntopng and nProbe that are you using? You should flush your existing ntopng data in order to start with a clean setup with the newly installed version: 1) systemctl stop ntopng 2) redis-cli flushall 3) rm -rf /ntopng (your ntopng data directory) 4) systemctl start ntopng Regards, Emanuele On 04/11/2017 02:12 PM, Robert Williams wrote: > Hi, > > We had a working installation which, after an apt upgrade (to latest stable) > is now somewhat broken and I’m unable to find why. > > Topology is simple: Multiple Cisco devices emitting Netflow -> nprobe > instances -> ntopng (The probes and ntopng are on the same machine) > > All the errors relate to the lack of an interface name, for example: > > Apr 11 12:46:45 ntopng ntopng: [Lua.cpp:76] ERROR: > ntop_select_interface : expected string, got nil Apr 11 12:46:45 > ntopng ntopng: [Lua.cpp:76] ERROR: ntop_interface_name2id : expected > string, got nil Apr 11 12:46:45 ntopng ntopng: [Lua.cpp:5134] WARNING: > Script failure > [/usr/share/ntopng/scripts/lua/as_stats.lua][/usr/share/ntopng/scripts > /lua/modules/lua_utils.lua:1686: attempt to concatenate local > 'interface_name' (a nil value)] > > The web interface reports this at the bottom of every page and most of the > pages are unable to display data because of it: > > /usr/share/ntopng/scripts/lua/if_stats.lua:72: attempt to concatenate > global 'ifid' (a nil value) > > [NTOPNG.CONF] > -i="tcp://127.0.0.1:95101" > -i="tcp://127.0.0.1:95201" > -i="tcp://127.0.0.1:95301" > -i="tcp://127.0.0.1:95302" > -i="tcp://127.0.0.1:95401" > -i="tcp://127.0.0.1:92101" > -i="tcp://127.0.0.1:92102" > -i="tcp://127.0.0.1:92103" > -i="tcp://127.0.0.1:92104" > -i="tcp://127.0.0.1:90001" > -i="tcp://127.0.0.1:90002" > -i="tcp://127.0.0.1:90003" > -i="tcp://127.0.0.1:90004" > -i="tcp://127.0.0.1:90005" > -i="tcp://127.0.0.1:90006" > -i="tcp://127.0.0.1:90007" > --pid=/var/run/ntopng.pid > --community= > --max-num-flows=512000 > --max-num-hosts=256000 > --dns-mode=3 > --data-dir=/ntopng > --sticky-hosts=none > --local-networks="xxx" > --collector-sample-rate=20 > --disable-login=1 > --disable-alerts= > --http-port=x.x.x.x:80 > --scripts-dir=/usr/share/ntopng/scripts > --daemon= > --dont-change-user= > > [NPROBE-EXAMPLE] > --collector-port=12101 > --zmq=tcp://127.0.0.1:92101 > -V=9 > -u=2101 > -Q=2102 > --max-num-flows=250000 > --dump-stats=/ntopng/nprobe/rtr-121_1_flows_stats.txt > --collector-sample-rate=20 > --syslog=RTR-121-01 > --dont-drop-privileges= > -T="%IPV6_SRC_ADDR %IPV6_DST_ADDR %IPV4_SRC_ADDR %IPV4_DST_ADDR > %IPV4_NEXT_HOP %INPUT_SNMP %OUTPUT_SNMP %IN_PKTS %IN_BYTES %OUT_PKTS > %OUT_BYTES %FIRST_SWITCHED %LAST_SWITCHED %L4_SRC_PORT %L4_DST_PORT > %TCP_FLAGS %PROTOCOL %SRC_TOS %SRC_AS %DST_AS" > -g=/var/run/nprobe-121-01.pid > > Any pointers? > > ROBERT WILLIAMS > TECHNICAL DIRECTOR > > Custodian Data Centres > Tel: +44 (0) 1622 230382 || E-Mail: mailto:[email protected] > http://www.CustodianDC.com > > Disclaimer: https://www.CustodianDC.com/email-disclaimer > Registered Office: Vinters Business Park, New Cut Rd, Maidstone, ME14 5NZ. > Company Number: 07878023 > > > > > _______________________________________________ > Ntop mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
