Hello all, finally I solved this problem thanks to a Michael Payne email. I foward his solution to the list for your knwoledge:
michael payne wrote: > > > I don't know if you figured the problem out yet > but I found the solution, because I was having the same > issue. Here is a link to the webpage with the solution that > worked for me > http://www.gossamer-threads.com/lists/ntop/users/21728. > > > > > > I hope this helps. Thanks all the list for your help and specially to Michael that found a solution to my problem. Now I will start enjoying ntop. Sincerelly yours, Miguel Velasco Mukom TAMON escribió: > Consistent with the Massimo's response, your case 3 is faulty. For > sure, when u use the single letter switches [eg -u], you just supply > the parameter after a space, no need for an equal [=] sign. > > Do man ntop to find the right way to use parameters and then start by > giving the commands straight from the command line so as to eliminate > issues with the ntop.conf. > > > M.A. TAMON > B.Eng, CCNP, CCNA > _________________________ > "A man owns nothing, not land or money, only his character, the > loyalty & courage in his heart" - Commander Chakotay - StarTrek > Voyager > My BLOGs: > [ICT Business Integration] - http://ibiztech.wordpress.com > [Leadership Lessons from Movies] - http://thbs.wordpress.com > [In Search of Excellence & Perfection] - http://perfexcellence.wordpress.com > [Technical How Tos & Stuff-at-a-Glance] - http://techowto.wordpress.com > > > > > On Wed, Oct 8, 2008 at 1:13 PM, Massimo Torquati <[EMAIL PROTECTED]> wrote: >> Miguel A. Velasco wrote: >>> Hi all, thanks very much for your comments Burton Strauss III. Folowwing >>> your instrucctions I´ve tried the next options in /etc/ntop.conf, all >>> unsuccesfully: >>> >>> >> The following is a working ntop.conf file: >> >> -u ntop >> -P /usr/local/share/ntop >> -Q /var/log/ntop >> -m 192.168.160.0/255.255.255.0 >> -i eth0 >> >> Regards, >> Massimo >> >>> Case 1: >>> --user=ntop >>> --db-file-path=/var/ntop >>> --interface=eth0,eth1,tun0 >>> --use-syslog=local1 >>> --http-server=3200 >>> --https-server=3203 >>> --daemon >>> >>> Case 2 >>> --user=ntop >>> --db-file-path=/var/ntop >>> --interface=eth0,eth1,tun0 >>> --access-log-file=/var/log/ntop.log >>> --http-server=3200 >>> --https-server=3203 >>> >>> Case 3: >>> -u=ntop >>> -i=eth0,eth1,tun0 >>> -a=/var/log/ntop.log >>> -w=3200 >>> -W=3203 >>> >>> In all cases I have obtained a "FATAL ERROR: Unrecognized/unprocessed >>> ntop options..." with the options specified in /etc/ntop.conf >>> >>> Maybe I didn´t understand you correctly .... >>> Thanks all again for your time. >>> Miguel A. Velasco >>> >>> >>> Burton Strauss III escribió: >>> >>>> I think - it's been a while since I read that part of the code - that you >>>> need to use =s on long options. >>>> >>>> So it's either >>>> >>>> -u ntop >>>> --user=ntop >>>> >>>> Not >>>> >>>> --user ntop >>>> >>>> Try it consistently between the file and the command line and let me >>>> know... >>>> >>> >>> >>>> -----Burton >>>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of >>>> Miguel A. Velasco >>>> Sent: Monday, October 06, 2008 5:05 AM >>>> To: [email protected] >>>> Subject: [Ntop] ntop starting error reading ntop.conf >>>> >>>> Hi all, I´m running ntop-3.3.6-1.el5.rf (installed with $yum install >>>> ntop) in a CentOS release 5.2. >>>> >>>> When I execute "$service ntop start" it returns de following error: >>>> >>>> Starting ntop: Processing file /etc/ntop.conf for parameters... >>>> Mon Oct 6 11:31:25 2008 NOTE: Interface merge enabled by default >>>> Mon Oct 6 11:31:25 2008 Initializing gdbm databases >>>> FATAL ERROR: Unrecognized/unprocessed ntop options... >>>> , --user ntop, , >>>> --db-file-path /var/ntop, , --interface eth0,eth1, , , >>>> --use-syslog=local1, , , --http-server 3200, , --https-server >>>> 3203, , , , --daemon, >>>> >>>> run ntop --help for usage information >>>> >>>> Common problems: >>>> -B "filter expressions" (quotes are required) >>>> --use-syslog=facilty (the = is required) >>>> >>>> My /etc/ntop.conf config is: >>>> >>>> ### Sets the user that ntop runs as. >>>> ### NOTE: This should not be root unless you really understand the >>>> security risks. >>>> --user ntop >>>> >>>> ### Sets the directory that ntop runs from. >>>> --db-file-path /var/ntop >>>> >>>> ### Interface(s) that ntop will capture on (default: eth0) >>>> --interface eth0,eth1 >>>> >>>> ### Configures ntop not to trust MAC addrs. This is used when port >>>> mirroring or SPAN >>>> #--no-mac >>>> >>>> ### Logging messages to syslog (instead of the console): >>>> ### NOTE: To log to a specific facility, use --use-syslog=local3 >>>> ### NOTE: The = is REQUIRED and no spaces are permitted. >>>> --use-syslog=local1 >>>> >>>> ### Tells ntop to track only local hosts as specified by the >>>> #--local-subnets option >>>> #--track-local-hosts >>>> >>>> ### Sets the port that the HTTP webserver listens on >>>> ### NOTE: --http-server 3000 is the default >>>> --http-server 3200 >>>> >>>> ### Sets the port that the optional HTTPS webserver listens on >>>> --https-server 3203 >>>> >>>> ### Sets the networks that ntop should consider as local. >>>> ### NOTE: Uses dotted decimal and CIDR notation. Example: >>>> ###192.168.0.0/24 >>>> ### The addresses of the interfaces are always local and don't >>>> need to be specified. >>>> #--local-subnets xx.xx.xx.xx/yy >>>> >>>> ### Sets the domain. ntop should be able to determine this automatically. >>>> #--domain mydomain.com >>>> >>>> ### Sets program to run as a daemon >>>> ### NOTE: For more than casual use, you probably want this. >>>> --daemon >>>> >>>> But if I execute at the command line the following: >>>> $ntop -w 3200 -W 3203 -i eth0,eth1 -d -L -a /var/log/ntop.log -u ntop >>>> >>>> It works fine! >>>> >>>> I have the local1 facility in my /etc/sylog.conf like follows: >>>> local1.* /var/log/ntop.log >>>> >>>> I would be very pleasant if anyone could tell me something to try in my >>>> configuration. >>>> >>>> Best regards, >>>> Miguel A.Velasco >>>> _______________________________________________ >>>> Ntop mailing list >>>> [email protected] >>>> http://listgateway.unipi.it/mailman/listinfo/ntop >>>> _______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
