Tim you must specify "-w=3050" (add =) as specified in the man page. We'll better handle this issue perhaps with a more explicit warning
Regards Luca On Aug 20, 2013, at 5:44 PM, Tim Bernhardson <[email protected]> wrote: > Luca: > > The directory /var/run/ntopng is empty, owned by the ntop user and mode 755. > Port 3000 is in use, however Port 3050 ( defined in the > /etc/ntopng/ntopng.conf file ) is unused. > > As you can tell from looking at the output of ntopng, it is not reading the > configuration file. > > Tim Bernhardson > Technical Services Manager > Sun-Maid Growers of California > 7273 Murray Drive, Ste 18 > Stockton, CA 95210 > > Direct Telephone: 1-209-472-8547 > Facsimile: 1-209-482-8448 > E-Mail: [email protected] > Web: www.sunmaid.com > > From: Luca Deri <[email protected]> > To: [email protected] > Cc: "[email protected]" <[email protected]> > Subject: Re: [Ntop] Configture NTOPNG > Message-ID: <[email protected]> > Content-Type: text/plain; charset="windows-1252" > > TIm > the permission issue should have been solved (please remove first > /var/run/ntopng/), as of the web issue is the HTTP port free? Check it with > nest at > > Luca > On Aug 19, 2013, at 10:36 PM, Tim Bernhardson <[email protected]> wrote: > >> Luca: >> >> Same error with SVN Code?does not read/use the ntopng.config file. >> >> /usr/local/bin/ntopng /etc/ntopng/ntopng.conf >> 19/Aug/2013 13:25:00 [Redis.cpp:54] Succesfully connected to Redis 64 bit >> v.2.4.10 >> 19/Aug/2013 13:25:00 [Ntop.cpp:427] Setting local networks to 192.168.1.0/24 >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '192.168.1.0'/'24' >> 19/Aug/2013 13:25:00 [Ntop.cpp:427] Setting local networks to >> 0.0.0.0/32,192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,224.0.0.0/8,239.0.0.0/8 >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '0.0.0.0'/'32' >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '192.168.0.0'/'16' >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '172.16.0.0'/'12' >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '10.0.0.0'/'8' >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '224.0.0.0'/'8' >> 19/Aug/2013 13:25:00 [AddressResolution.cpp:129] Rule '239.0.0.0'/'8' >> 19/Aug/2013 13:25:00 [Prefs.cpp:513] WARNING: Config file >> /var/tmp/ntopng/ntopng-users.conf not found (it will be created) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:70] WARNING: No capture interface >> specified >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:923] Available interfaces (-i >> <interface index>): >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 1. (eth0) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 2. (eth1) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 3. USB bus number 1 >> (usbmon1) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 4. (eth2) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 5. USB bus number 2 >> (usbmon2) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 6. (eth3) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 7. USB bus number 3 >> (usbmon3) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 8. (eth4) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 9. USB bus number 4 >> (usbmon4) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 10. USB bus number 5 >> (usbmon5) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 11. Pseudo-device that >> captures on all interfaces (any) >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:944] 12. (lo) >> 19/Aug/2013 13:25:00 [PcapInterface.cpp:53] Reading packets from interface >> eth0... >> 19/Aug/2013 13:25:00 [NetworkInterface.cpp:837] User changed to nobody >> 19/Aug/2013 13:25:00 [Ntop.cpp:476] Registered interface eth0 [id: 0] >> 19/Aug/2013 13:25:00 [main.cpp:154] ERROR: Unable to store PID in file >> /var/run/ntopng/ntopng.pid >> 19/Aug/2013 13:25:00 [HTTPserver.cpp:297] ERROR: Unable to start HTTP server >> (IPv4) on port 3000 >> >> more /etc/ntopng/ntopng.conf >> # run as user ntop >> #--user ntop >> -U ntop >> >> # run as daemon >> --daemon >> >> # for testing use different http port >> #--http-port 3050 >> -w 3050 >> >> # Set the Default Data Directory >> --data-dir /etc/ntopng/data >> >> # Set the HTTP Documents Directory >> --httpdocs-dir /usr/local/share/ntopng/httpdocs >> >> # Set the Scripts Directory >> --scripts-dir /usr/local/share/ntopng/scripts >> >> # Set the Callbacs Directory >> --callbacks-dir /usr/local/share/ntopng/scripts/callbacks >> >> # Set the redis Info >> --redis localhost:6379 >> >> # Interfaces to Monitor >> #--interface eth1,eth2,eth3,eth4 >> #-i eth3 >> --interface 6 >> >> # Set PID File >> #--pid /var/run/ntopng/ntopng.pid >> -G=/var/run/ntopng/ntopng.pid >> >> # Use our Protocol List >> #--protocols /usr/local/ntop/etc/ntop/protocol.list >> >> # Since the Interfaces we capture from don't have an IP Address >> # We need to set the LocalHostNetworks >> #--local-subnets >> "192.168.40.0/24,192.168.42.0/24,192.168.43.0/24,192.168.45.0/2 >> 4" >> -m "192.168.40.0/24,192.168.42.0/24,192.168.43.0/24,192.168.45.0/24" >> >> # Enable some debugging >> --verbose >> >> Tim Bernhardson >> Technical Services Manager >> Sun-Maid Growers of California >> 7273 Murray Drive, Ste 18 >> Stockton, CA 95210 >> >> Direct Telephone: 1-209-472-8547 >> Facsimile: 1-209-482-8448 >> E-Mail: [email protected] >> Web: www.sunmaid.com >> >> _______________________________________________ >> 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
