On Tue, Apr 14, 2009 at 03:41, Yuri Francalacci <[email protected]> wrote:
> run the start script like
> sh -x /usr/local/etc/rc.d/ntop start
> and check how ntop is launched: maybe it is pointing to a different
> prefs file.
> Regards, Yuri
>
> On 04/14/2009 03:26 AM, Kurt Buff wrote:
>> I'm putting together a new ntop installation (well, sorta new - it's
>> FreeBSD 7.1Release, with ntop 3.3_4 out of the base ports tree) and
>> can't start the darn thing. I keep getting the following error:
>>
>>      Apr 13 17:57:11 znetmon ntop[654]:   [admin.c:967]
>> **FATAL_ERROR** No password for admin user - please re-run ntop in
>> non-daemon mode first
>>
>> But, I've done that, several times:
>>
>>      /usr/local/bin/ntop -u ntop -A
>>
>> Whereupon it prompts for the password, and I type it in, and it looks
>> happy, but then
>>
>>      '/usr/local/etc/rc.d/ntop start'
>>
>> yields the same message in /var/log/messages, every time.
>>
>> I've perused the FAQ and man pages multiple times, and I have another
>> ntop running just fine, for many moons now.
>>
>> Any hints?
>>
>> I am updating the ports tree right now, and will get a more current
>> version of ntop installed soonest, but this is a bit weird.
>>
>>
>> Thanks,
>>
>> Kurt

Have now tried that - it doesn't look like that's the problem.

In /etc/rc.conf, I have the following config for ntop:

     ntop_enable="YES"
     ntop_flags="-d -u ntop -P /home/ntop/databases -K -L -t 6 -o -i
em0 -m 
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com"


After executing 'sh -x /usr/local/etc/rc.d/ntop start' I see the
following lines, amongst all the other stuff:

Starting ntop.
+ [ -n  ]
+ _doit=/usr/local/bin/ntop -d -u ntop -P /home/ntop/databases -K -L
-t 6 -o -i em0 -m
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com
+ [ -n  ]
+ [ -n  ]
+ _run_rc_doit /usr/local/bin/ntop -d -u ntop -P /home/ntop/databases
-K -L -t 6 -o -i em0 -m
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com
+ debug run_rc_command: doit: /usr/local/bin/ntop -d -u ntop -P
/home/ntop/databases -K -L -t 6 -o -i em0 -m
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com
+ eval /usr/local/bin/ntop -d -u ntop -P /home/ntop/databases -K -L -t
6 -o -i em0 -m 
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com
+ /usr/local/bin/ntop -d -u ntop -P /home/ntop/databases -K -L -t 6 -o
-i em0 -m 
192.168.8.0/24,192.168.10.0/24,192.168.11.0/24,192.168.12.0/24,192.168.13.0/24,192.168.15.0/24,192.168.24.0/24
-w 192.168.10.68:3000 -W 0 -D mycompany.com
Wed Apr 15 10:56:36 2009  NOTE: Interface merge enabled by default
Wed Apr 15 10:56:36 2009  [globals-core.c:95] Initializing gdbm databases
Wed Apr 15 10:56:36 2009  [initialize.c:741] Opening database
'/home/ntop/databases/prefsCache.db'
Wed Apr 15 10:56:36 2009  [initialize.c:741] Opening database
'/home/ntop/databases/ntop_pw.db'
Wed Apr 15 10:56:36 2009  [prefs.c:233] NOTE: Reading preferences file entries
Wed Apr 15 10:56:36 2009  [prefs.c:329] NOTE: Processing parameters (pass2)
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n  ]
+ return 0
+ return 0
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to