Yes, the thread purgeIdleHosts() runs, it does other things such as compute
minute-by-minute throughput.

The info.html line to look for is:

-c | --sticky-hosts (default) No

The code in hash.c is this:

        if((!myGlobals.stickyHosts)
           || (el->hostNumIpAddress[0] == '\0') /* Purge MAC addresses too
*/
           || (!subnetPseudoLocalHost(el))) {
          theFlaggedHosts[maxBucket++] = el;

So non-local/pseudo-local hosts are flushed regardless of the sticky
setting...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Miller, Eoin
Sent: Thursday, September 26, 2002 6:08 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] idle hosts being purged


version number is 2.1.3

here is how the process is being kicked off:
/usr/local/bin/ntop -c -d -D fhlb-of.com -P /var/log/ntop -i eth1 -m
64.242.0.0/255.255.255.0

and on the info.html (current ntop configuration) page it still displays
this:

Host Hash counts
Actual Hash Size 512
Stored hosts 196 [38 %]
Purge idle hosts Enabled
Purged hosts 862


also if i kick off the process not in daemon mode this is what appears on
std out:

[admin@ids /]# ntop -c -P /var/log/ntop -i eth1
Wait please: ntop is coming up...
26/Sep/2002 19:00:38 Initializing IP services...
26/Sep/2002 19:00:38 Initializing GDBM...
26/Sep/2002 19:00:38 Initializing network devices...
26/Sep/2002 19:00:38 ntop v.2.1.3 MT [i686-pc-linux-gnu] (09/25/02 02:41:59
PM build)
26/Sep/2002 19:00:38 Listening on [eth1]
26/Sep/2002 19:00:38 Copyright 1998-2002 by Luca Deri <[EMAIL PROTECTED]>
26/Sep/2002 19:00:38 Get the freshest ntop from http://www.ntop.org/
26/Sep/2002 19:00:38 Initializing...
26/Sep/2002 19:00:38 Truncated network size to 1024 hosts (real netmask
255.255.255.255)
26/Sep/2002 19:00:38 Loading plugins (if any)...
26/Sep/2002 19:00:38 WARNING: Unable to find the plugins/ directory.
26/Sep/2002 19:00:38 Resetting traffic statistics...
26/Sep/2002 19:00:38 Started thread (1026) for network packet analyser.
26/Sep/2002 19:00:38 Started thread (2051) for idle hosts detection.
26/Sep/2002 19:00:38 Started thread (3076) for DNS address resolution.
26/Sep/2002 19:00:38 Started thread (4101) for address purge.

if you pass the -c option should the threads for idle host detection start
at all?

---faq---
     -c             | --sticky-hosts
                                Idle hosts are not purged from hash
---faq---
thats what it says in the FAQ but this dosent appear to be happening, the
hosts are still being purged.

thanks

eoin
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to