This option allows rrd to support more than 32K hosts (at least under some
versions of Linux, that's the limit on the # of files in a single
directory).

Without this option, rrd creates a single directory per host:

/var/ntop/rrd/interfaces/eth1/hosts/12.239.98.199/xxxx.rrd
                                    ^^^^^^^^^^^^^

With the --enable-largerrdpop option, it's converted to a sub-directory
structure:

/var/ntop/rrd/interfaces/eth1/hosts/12/239/98/199/xxxx.rrd
                                    ^^^^^^^^^^^^^

So each level is limited to 256 entries.


Unfortunately, if you collect ntop data one way, you need to continue
collecting data that way.  So err on the side of
selecting the --enable-largerrdpop if you think you MIGHT need it.


Somebody more clever than I am could probably script it.
My hack would be:

# cd /var/ntop/rrd/interfaces/eth1/hosts
# ls -1 | \
grep '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]' | \
awk '{ o=$1; \
               n=$1; \
               gsub(/\./, "/", n);
               print "mkdir -p " n; \
               print "mv -f " o "/* " n; \
               print "rmdir " o; \
             }' >x
# . x


-----Burton

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

Reply via email to