Hi,

It seems like the -P option to specify the database path on 3.2.7
Windows version does not work, at least not as I expected...

 

I run with the following command line 

ntop /c -i 0 -P "c:\ntoptest" -Q "c:\ntoptest"

 

It creates a ntoptest directory and within it a directory named with
some kind of time stamp (2219901711) as well as the RRD directory with
the same time stamp directory within. No matter how I try with slashes,
double slashes, backslashes, double backslashes, precreated directory
etc, I can't get it to write to a directory outside the program
directory, they all give me the error "failed sanity check" as shown
below. What I would like is to have Ntop create all dynamic files
(DB-files and RRDs) on my D: drive while having the application
installed on the C: drive. Anyone who knows if that is possible?

 

Best regards

Roger

 

Running with double backslashes or a single forward slash

 

C:\Program\ntop-Win32>ntop /c -s -P "c:\\ntoptest"

Running ntop for Win32.

01/08/07 17:28:47  THREADMGMT[t5476]: ntop RUNSTATE: PREINIT(1)

01/08/07 17:28:47  THREADMGMT[t5476]: ntop RUNSTATE: INIT(2)

01/08/07 17:28:47  NOTE: Interface merge enabled by default 01/08/07
17:28:47  **ERROR** Invalid string specified for option -P |
--db-file-path

01/08/07 17:28:47  Sanitized value is 'c:.ntoptest'

 

Running with double backslashes or a double forward slashes

C:\Program\ntop-Win32>ntop /c -s -P "c://ntoptest"

Running ntop for Win32.

01/08/07 17:29:53  THREADMGMT[t372]: ntop RUNSTATE: PREINIT(1)

01/08/07 17:29:53  THREADMGMT[t372]: ntop RUNSTATE: INIT(2)

01/08/07 17:29:53  NOTE: Interface merge enabled by default

01/08/07 17:29:53  Initializing gdbm databases

01/08/07 17:29:53  **WARNING** RRD: c:\, error 13 Permission denied

01/08/07 17:29:53  **WARNING** RRD: c:\, error 13 Permission denied

01/08/07 17:29:53  **ERROR** Invalid path/filename specified for option
-P | --db-file-path

01/08/07 17:29:53  Sanitized value is 'c:..ntoptest'

 

Output from command above which works, but logs in the wrong place is
(where it looks like C:\ was stripped):

C:\Program\ntop-Win32>ntop /c -i 0 -s -P "c:\ntoptest" -Q "c:\ntoptest"

Running ntop for Win32.

01/08/07 17:17:59  THREADMGMT[t4004]: ntop RUNSTATE: PREINIT(1)

01/08/07 17:17:59  THREADMGMT[t4004]: ntop RUNSTATE: INIT(2)

01/08/07 17:17:59  NOTE: Interface merge enabled by default

01/08/07 17:17:59  Initializing gdbm databases

01/08/07 17:17:59  ntop v.3.2.7

01/08/07 17:17:59  Configured on ntop-factory.ntop.org, built on
14/12/06 15:39:05.

01/08/07 17:17:59  Copyright 1998-2006 by Luca Deri <[EMAIL PROTECTED]>

01/08/07 17:17:59  Get the freshest ntop from http://www.ntop.org/

01/08/07 17:17:59  Initializing ntop

01/08/07 17:17:59  Resetting traffic statistics for device w29n5113
Intel_0

01/08/07 17:17:59  DLT: Device 0
[\Device\NPF_{0C997EA3-2AC0-461B-9003-E4C931B46A91}] is 1, mtu 1514,
header 14

01/08/07 17:17:59  Initializing device
\Device\NPF_{0C997EA3-2AC0-461B-9003-E4C931B46A91} (0)

01/08/07 17:17:59  Initializing gdbm databases

01/08/07 17:17:59  VENDOR: Loading MAC address table.

01/08/07 17:17:59  VENDOR: Checking for MAC address table file

01/08/07 17:17:59  VENDOR: File '.\specialMAC.txt' does not need to be
reloaded

01/08/07 17:17:59  VENDOR: ntop continues ok

01/08/07 17:17:59  VENDOR: Checking for MAC address table file

01/08/07 17:17:59  VENDOR: File '.\oui.txt' does not need to be reloaded

01/08/07 17:17:59  VENDOR: ntop continues ok

01/08/07 17:17:59  Fingerprint: Loading signature file

01/08/07 17:17:59  Fingerprint: Checking for Fingerprint file... file

01/08/07 17:17:59  **WARNING** Fingerprint: Unable to open file
'etter.finger.os'

01/08/07 17:17:59  ASN: Checking for Autonomous System Number table file

01/08/07 17:17:59  **WARNING** ASN: Unable to open file 'AS-list.txt'

01/08/07 17:17:59  I18N: This instance of ntop does not support multiple
languages

01/08/07 17:17:59  IP2CC: Checking for IP address <-> Country Code
mapping file

01/08/07 17:17:59  IP2CC: Loading file '.\p2c.opt.table'

01/08/07 17:17:59  IP2CC: ...found 52395 lines

01/08/07 17:17:59  GDVERCHK: Guessing at libgd version

01/08/07 17:17:59  GDVERCHK: ... as 2.x

01/08/07 17:18:00  **ERROR** Failed to connect to MySQL: Can't connect
to MySQLserver on 'localhost' (10061) [localhost:root::ntop]

01/08/07 17:18:00  Initializing external applications

01/08/07 17:18:00  THREADMGMT[t131656]: NPA: Started thread for network
packet analyzer (w29n5113 Intel_0)

01/08/07 17:18:00  THREADMGMT[t131640]: SFP: Started thread for
fingerprinting

01/08/07 17:18:00  THREADMGMT[t4944]: NPA: network packet analyzer
(packet processor) thread running [p4348]

01/08/07 17:18:00  THREADMGMT[t3464]: SFP: Fingerprint scan thread
starting [p4348]

01/08/07 17:18:00  THREADMGMT[t131652]: SIH: Started thread for idle
hosts detection

01/08/07 17:18:00  THREADMGMT[t131628]: DNSAR(1): Started thread for DNS
address resolution

01/08/07 17:18:00  THREADMGMT[t1676]: SIH: Idle host scan thread
starting [p4348]

01/08/07 17:18:00  THREADMGMT[t5084]: DNSAR(1): Address resolution
thread running [p4348]

01/08/07 17:18:00  THREADMGMT[t131632]: DNSAR(2): Started thread for DNS
address resolution

01/08/07 17:18:00  THREADMGMT[t5004]: DNSAR(2): Address resolution
thread running [p4348]

01/08/07 17:18:00  THREADMGMT[t131624]: DNSAR(3): Started thread for DNS
address resolution

01/08/07 17:18:00  Calling plugin start functions (if any)

01/08/07 17:18:00  THREADMGMT[t1628]: DNSAR(3): Address resolution
thread running [p4348]

01/08/07 17:18:00  INITWEB: Initializing web server

01/08/07 17:18:00  INITWEB: Initializing TCP/IP socket connections for
web server

01/08/07 17:18:00  INITWEB: Initialized socket, port 3000, address (any)

01/08/07 17:18:00  INITWEB: Waiting for HTTP connections on port 3000

01/08/07 17:18:00  INITWEB: Starting web server

01/08/07 17:18:00  THREADMGMT[t131832]: INITWEB: Started thread for web
server

01/08/07 17:18:00  Listening on [w29n5113 Intel_0]

01/08/07 17:18:00  WEB: ntop's web server is now processing requests

01/08/07 17:18:00  Loading Plugins

01/08/07 17:18:00  ICMP: Welcome to ICMP Watch. (C) 1999-2005 by Luca
Deri

01/08/07 17:18:00  SFLOW: Welcome to sFlow.(C) 2002-04 by Luca Deri

01/08/07 17:18:00  NETFLOW: Welcome to NetFlow.(C) 2002-06 by Luca Deri

01/08/07 17:18:00  RRD: Welcome to Round-Robin Databases. (C) 2002-06 by
Luca Deri.

01/08/07 17:18:00  Calling plugin start functions (if any)

01/08/07 17:18:00  RRD: Welcome to the RRD plugin

01/08/07 17:18:00  RRD_DEBUG: Parameters:

01/08/07 17:18:00  RRD_DEBUG:     dumpInterval 300 seconds

01/08/07 17:18:00  RRD_DEBUG:     dumpShortInterval 10 seconds

01/08/07 17:18:00  RRD_DEBUG:     dumpHours 72 hours by 300 seconds

01/08/07 17:18:00  RRD_DEBUG:     dumpDays 90 days by hour

01/08/07 17:18:00  RRD_DEBUG:     dumpMonths 36 months by day

01/08/07 17:18:00  RRD_DEBUG:     dumpDomains no

01/08/07 17:18:00  RRD_DEBUG:     dumpFlows no

01/08/07 17:18:00  RRD_DEBUG:     dumpHosts no

01/08/07 17:18:00  RRD_DEBUG:     dumpInterfaces yes

01/08/07 17:18:00  RRD_DEBUG:     dumpASs yes

01/08/07 17:18:00  RRD_DEBUG:     dumpMatrix no

01/08/07 17:18:00  RRD_DEBUG:     dumpDetail high

01/08/07 17:18:00  RRD_DEBUG:     hostsFilter

01/08/07 17:18:00  RRD_DEBUG:     rrdPath ntoptest\rrd\2219901711

01/08/07 17:18:00  THREADMGMT: RRD: Started thread (t131856) for data
collection

 

01/08/07 17:18:00  THREADMGMT[t6052]: RRD: Data collection thread
starting [p4348]

01/08/07 17:18:00  Note: Reporting device initally set to 0 [w29n5113
Intel_0] (merged)

01/08/07 17:18:00  THREADMGMT[t4004]: ntop RUNSTATE: RUN(4)

01/08/07 17:18:00  THREADMGMT[t3136]: NPS(w29n5113 Intel_0):
pcapDispatch thread starting [p4348]

01/08/07 17:18:00  THREADMGMT[t3136]: NPS(w29n5113 Intel_0):
pcapDispatch thread running [p4348]

01/08/07 17:18:00  THREADMGMT[t131864]: NPS(1): Started thread for
network packet sniffing

01/08/07 17:18:01  THREADMGMT[t3464]: SFP: Fingerprint scan thread
running [p4348]

01/08/07 17:18:01  THREADMGMT[t1676]: SIH: Idle host scan thread running
[p4348]

01/08/07 17:18:10  THREADMGMT[t131736]: RRD: Started thread for
throughput datacollection

01/08/07 17:18:10  THREADMGMT[t2492]: RRD: Throughput data collection:
Thread starting [p4348]

01/08/07 17:18:10  THREADMGMT[t2492]: RRD: Throughput data collection:
Thread running [p4348]

01/08/07 17:18:10  THREADMGMT[t6052]: RRD: Data collection thread
running [p4348]

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to