Unless you don't have a few KB in /tmp to create the graphics, ntop doesn't use much disk space on an on-going basis.
The error message, Index mismatch, is in purgeIdleHosts() where it's identifying the candidates to purge. What it does is start somewhere in the array at random and scan until it finds the maximum # it's allow to purge per cycle... If the lastSeen time < purgeTime, it's a candiate... the other tests are: not myGlobals.stickyHosts or myGlobals.borderSnifferMode or not subnetPseudoLocalHost() (the -m flag) If the hostTrafficBucket doesn't match theIdx, that's what causes the message. ntop fixes it up and continues on. So while bad, this isn't the whole problem. It's a area that I've never touched and Luca did the whole re-write, so I'm refering it to him (Luca: Hint Hint)... Please run under gdb and capture the "bt full" stuff - see instructions at http://snapshot.ntop.org -----Burton /* Calculates entries to free */ hashLen = myGlobals.device[actDevice].actualHashSize; for(theIdx = (myGlobals.actTime % hashLen) /* random start */, hashFull = 0, idx=1; idx<hashLen; idx++) { HostTraffic *el; if((theIdx == myGlobals.broadcastEntryIdx) || (theIdx == myGlobals.otherHostEntryIdx)) { theIdx = (theIdx+1) % hashLen; continue; } if((el = myGlobals.device[actDevice].hash_hostTraffic[theIdx]) != NULL) { if((!hashFull) && (el->lastSeen < purgeTime)) { if((!myGlobals.stickyHosts) || (myGlobals.borderSnifferMode) || (!subnetPseudoLocalHost(el))) { #ifdef MULTITHREADED accessMutex(&myGlobals.hostsHashMutex, "scanIdleLoop"); #endif theFlaggedHosts[maxBucket++] = el; if(el->hostTrafficBucket != theIdx) { traceEvent(TRACE_ERROR, "ERROR: Index mismatch (hostTrafficBucket=%d/theIdx=%d)", el->hostTrafficBucket, theIdx); el->hostTrafficBucket = theIdx; /* Error recovery */ } myGlobals.device[actDevice].hash_hostTraffic[theIdx] = NULL; /* (*) */ #ifdef MULTITHREADED releaseMutex(&myGlobals.hostsHashMutex); #endif if(maxBucket == (len-1)) { hashFull = 1; continue; } } } /* If (*) the entry might be NULL */ if(myGlobals.device[actDevice].hash_hostTraffic[theIdx] != NULL) myGlobals.device[actDevice].hash_hostTraffic[theIdx]->numUses = 0; } theIdx = (theIdx+1) % hashLen; } -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Charles Grijalv Sent: Tuesday, July 02, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [Ntop] Ntop crash after certain time ( help! Hi I work with Linux Mandrake last version (My Pc is P6 256MRAM 4GByte+4GByte)and Ntop Current last version (2.0.99MT) on a Switch Cisco 3550. My question is when i execute the command following, (you will see the next messages under this line) i got the folowing error. --------------------------------------------------- root@xx root]# ntop start - m "19x.1x.xxx.x/22,19x.1xx.0.0/16" -u ntop -p 0 -65000 Wait please: ntop is coming up... 28/Jun/2002 12:04:42 Initializing IP services... SSL is present but https is disabled: use -W for enabling it 28/Jun/2002 12:04:42 Initializing GDBM... 28/Jun/2002 12:04:42 Initializing network devices... 28/Jun/2002 12:04:42 ntop v.2.0.99 MT (SSL) [i686-pc-linux- gnu] (06/28/02 11:38:59 AM build) 28/Jun/2002 12:04:42 Listening on [eth0] 28/Jun/2002 12:04:42 Copyright 1998-2002 by Luca Deri 28/Jun/2002 12:04:42 Get the freshest ntop from http://www.ntop.org/ 28/Jun/2002 12:04:42 Initializing... 28/Jun/2002 12:04:42 Loading plugins (if any)... 28/Jun/2002 12:04:42 Searching plugins in /usr/local/lib/ntop/plugins 28/Jun/2002 12:04:42 Welcome to icmpWatchPlugin. (C) 1999 by Luca Deri. 28/Jun/2002 12:04:42 Welcome to LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni. 28/Jun/2002 12:04:42 Welcome to NetFlow. (C) 2002 by Luca Deri. 28/Jun/2002 12:04:42 Welcome to nfsWatchPlugin. (C) 1999 by Luca Deri. 28/Jun/2002 12:04:42 Welcome to PDAPlugin. (C) 2001-2002 by L.Deri and W.Brock 28/Jun/2002 12:04:42 Welcome to sFlowPlugin. (C) 2002 by Luca Deri. 28/Jun/2002 12:04:42 Processing protocol list: '0- 65000' 28/Jun/2002 12:04:42 Unknown protocol '0-65000'. It has been ignored. 28/Jun/2002 12:04:42 Resetting traffic statistics... 28/Jun/2002 12:04:43 Started thread (1026) for network packet analyser. 28/Jun/2002 12:04:43 Started thread (2051) for idle hosts detection. 28/Jun/2002 12:04:43 Started thread (3076) for DNS address resolution. 28/Jun/2002 12:04:43 Started thread (4101) for address purge. 28/Jun/2002 12:04:43 Initializing plugins (if any)... 28/Jun/2002 12:04:43 NetFlow export disabled 28/Jun/2002 12:04:43 Waiting for HTTP connections on port 3000... 28/Jun/2002 12:04:43 Started thread (5126) for web server. 28/Jun/2002 12:04:43 Sniffying... 28/Jun/2002 12:04:43 Started thread (6151) for network packet sniffing on eth0. 28/Jun/2002 12:04:43 Extending hash size [newSize=512] [deviceId=0] 28/Jun/2002 12:05:43 Extending hash size [newSize=1024] [deviceId=0] 28/Jun/2002 12:08:17 Extending hash size [newSize=2048] [deviceId=0] 28/Jun/2002 13:01:30 Extending hash size [newSize=4096] [deviceId=0] 28/Jun/2002 16:23:23 Extending hash size [newSize=8192] [deviceId=0] 28/Jun/2002 16:39:56 ERROR: Index mismatch (hostTrafficBucket=820/theIdx=69) 28/Jun/2002 16:39:56 ERROR: Index mismatch (hostTrafficBucket=69/theIdx=820) 28/Jun/2002 16:39:59 ERROR: purgeHostIdx(0,820) failed [host not found] 28/Jun/2002 17:16:22 ERROR: Index mismatch (hostTrafficBucket=1393/theIdx=1020) 28/Jun/2002 17:16:22 ERROR: Index mismatch (hostTrafficBucket=1020/theIdx=1393) 28/Jun/2002 17:16:28 ERROR: purgeHostIdx(0,1393) failed [host not found] Segmentation fault -------------------------------------------------------------- and the same time , i got data of the capacity of hard disk as you can see to continuation minutes before that stop the Ntop. ------------------------------------------------------------ Jun 28 15:12 Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda5 4079648 2043352 1829060 53% / none 126896 0 1268960% /dev/shm /dev/hda7 4047904 89812 3958092 3% /home ------------------------------------------------------------- Jun 28 15:13:54 Filesystem 1K-blocks Used Available Use% Mounted on /dev/hda5 4079648 2043356 1829056 53% / none 126896 0 1268960% /dev/shm /dev/hda7 4047904 89816 3958088 3% /home -------------------------------------------------------------- Jun 28 15:14:54 Filesystem 1K-blocks Used Available Use% Mounte /dev/hda5 4079648 2043356 1829056 53% / none 126896 0 126896 0% /dev/s /dev/hda7 4047904 89816 3958088 3% /home Filename -------------------------------------------------------------- What i might do for resolve this problem once and for all ? without to be restart the Program or server all days. best regards Clark . ----- Tu correo gratis en MixMail http://www.mixmail.com Ya.com Tarifa Plana �15,99 + 1 mes GRATIS http://acceso.ya.com/tarifaplana _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
