Lets strip this thread to one per item...

The PARAM_DEBUG stuff shows EXACTLY what is read from the file, ntop_args in
the current directory (bad choice, BTW, use absolute paths or else when ntop
starts in a script, etc. it won't find the file)...

You know, it reads as if your ntop_args was a shell script, and looked like
this:

------------------------------------
@!/bin/sh
/usr/local/ntop/bin/ntop \
-P /usr/local/ntop \
-u ntop \
etc.
------------------------------------

All the file can have is the various parameters.  Read the man ntop page,

       @filename
        The text of filename is copied -  ignoring  line  breaks  and
comment
        lines  (anything following a #) - into the command line.  ntop
behaves
        as if all of the text had simply been typed directly  on  the
command
        line.   For example, if the command line is "-t 3 @d -u ntop" and
file
        d contains just the line '-d', then the effective command line is -t
3
        -d -u ntop.  Multiple @s are permitted.

        Remember,  most  ntop  options  are "sticky", that is they just set
an
        internal flag. Invoking them  multiple  times  doesn't  change
ntop's
        behavior.  However,  options  that set a value, such
as --trace-level,
        will use the LAST value given: --trace-level 2  --trace-level  3
will
        run as --trace-level 3.


So, it should be

------------------------------------
-P /usr/local/ntop
-u ntop
-d
-a /var/adm/ntop_access
-L
-D inorganic.org
--https-server 3030
--throughput-bar-chart
--local-subnets 192.168.192.0/24
------------------------------------


-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Roy S. Rapoport
Sent: Saturday, June 21, 2003 3:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [Ntop-dev] ntop 2.2 on Solaris 9



> @filename - try #define PARAM_DEBUG in globals-defines.h and see what the
> debug messages show is happening during startup.

Here it is:
---
Wait please: ntop is coming up...
PARAM_DEBUG: Requested parameter file, 'ntop_args'
PARAM_DEBUG: File size 195
   Processing file ntop_args for parameters...
PARAM_DEBUG: fgets() '/usr/local/ntop/bin/ntop \
'
PARAM_DEBUG:      -> '/usr/local/ntop/bin/ntop \ '
PARAM_DEBUG: fgets() '-P /usr/local/ntop \
'
PARAM_DEBUG:      -> '-P /usr/local/ntop \ '
PARAM_DEBUG: fgets() '-u ntop \
'
PARAM_DEBUG:      -> '-u ntop \ '
PARAM_DEBUG: fgets() '-d \
'
PARAM_DEBUG:      -> '-d \ '
PARAM_DEBUG: fgets() '-a /var/adm/ntop_access \
'
PARAM_DEBUG:      -> '-a /var/adm/ntop_access \ '
PARAM_DEBUG: fgets() '-L \
'
PARAM_DEBUG:      -> '-L \ '
PARAM_DEBUG: fgets() '-D inorganic.org \
'
PARAM_DEBUG:      -> '-D inorganic.org \ '
PARAM_DEBUG: fgets() '--https-server 3030 \
'
PARAM_DEBUG:      -> '--https-server 3030 \ '
PARAM_DEBUG: fgets() '--throughput-bar-chart \
'
PARAM_DEBUG:      -> '--throughput-bar-chart \ '
PARAM_DEBUG: fgets() '--local-subnets 192.168.192.0/24 \
'
PARAM_DEBUG:      -> '--local-subnets 192.168.192.0/24 \ '
PARAM_DEBUG: effective cmd line: './ntop  /usr/local/ntop/bin/ntop \  -P
/usr/local/ntop \  -u ntop \  -d \  -a /var/adm/ntop_access \  -L \  -D
inorganic.org \  --https-server 3030 \  --throughput-bar-chart
  --local-subnets 192.168.192.0/24 \ '
PARAM_DEBUG:      0. './ntop'
PARAM_DEBUG:      1. '/usr/local/ntop/bin/ntop'
PARAM_DEBUG:      2. ' '
PARAM_DEBUG:      3. '-P'
PARAM_DEBUG:      4. '/usr/local/ntop'
PARAM_DEBUG:      5. ' '
PARAM_DEBUG:      6. '-u'
PARAM_DEBUG:      7. 'ntop'
PARAM_DEBUG:      8. ' '
PARAM_DEBUG:      9. '-d'
PARAM_DEBUG:     10. ' '
PARAM_DEBUG:     11. '-a'
PARAM_DEBUG:     12. '/var/adm/ntop_access'
PARAM_DEBUG:     13. ' '
PARAM_DEBUG:     14. '-L'
PARAM_DEBUG:     15. ' '
PARAM_DEBUG:     16. '-D'
PARAM_DEBUG:     17. 'inorganic.org'
PARAM_DEBUG:     18. ' '
PARAM_DEBUG:     19. '--https-server'
PARAM_DEBUG:     20. '3030'
PARAM_DEBUG:     21. ' '
PARAM_DEBUG:     22. '--throughput-bar-chart'
PARAM_DEBUG:     23. ' '
PARAM_DEBUG:     24. '--local-subnets'
PARAM_DEBUG:     25. '192.168.192.0/24'
PARAM_DEBUG:     26. ' '
FATAL ERROR: Unrecognized/unprocessed ntop options...
      /usr/local/ntop/bin/ntop

run ./ntop --help for usage information

    Common problems:
        -B "filter expressions" (quotes are required)
        --use-syslog=facilty (the = is required)
---

I don't see anything quite obvious in this expanded debug; any
suggestions?

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

Reply via email to