DON'T GIVE ntop the -E parameter - and it won't test for the external tool.
-----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Johannes Kinscher Sent: Tuesday, June 03, 2003 7:42 PM To: [EMAIL PROTECTED] Subject: Re: [Ntop] ntop + lsof = problem But how to configure it so it can't faile ? Because i can run lsof from sh or bash without any problems, so how can the test faile (can't find lsof)? I tested the same on Suse 8.1 and it works fine. But on the other linux (self-bulid linux, main from www.linuxfromscratch.de) it dont get this working... Do I have to e.g. link lsof somewhere ?? Thanks, Johannes Kinscher ----- Original Message ----- From: "Burton M. Strauss III" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 5:19 PM Subject: RE: [Ntop] ntop + lsof = problem > 1. Don't use lsof. Why would you EVER want to? It's a stupid idea to > expose the inner workings of the ntop host system via a web server to the > world or a part of it. If you as the sysop have a real need for lsof, then > ssh to the box and use the console. > > 2. ntop does a bunch of tests to make sure lsof exists, is suid root, runs, > etc. The code indicates the specific test that failed (util.c): > > traceEvent(CONST_TRACE_ERROR, > "External tool test failed(code=%d%d%d). Disabling %s > function%s.\n", > rc, > ecode, > errno, > commandName, > ecode == 7 ? " (tool exists but is not suid root)" : ""); > > so 040 is rc=0 ecode=4 errno=0 - this means that the 'which' command, trying > to find lsof failed. > > -----Burton > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Johannes > Kinscher > Sent: Thursday, May 29, 2003 10:03 PM > To: [EMAIL PROTECTED] > Subject: [Ntop] ntop + lsof = problem > > > > Hello! > > I have a problem with ntop: > > sh-2.05a# ntop -E > Wait please: ntop is coming up... > 29/May/2003 14:45:49 **ERROR** External tool test failed(code=040). > Disabling lsof function. > ..... > > But lsof is installed and is working 100%. > lsof path: /bin/lsof ; version: 4.67 > ntop path: /usr/bin/ntop ; version : ntop v.2.2 MT (SSL) [i686-pc-linux-gnu] > (05/29/03 03:34:53 PM build) > > Where i have to install lsof to, so i can use it with ntop ? > Or can i change this install-path somewhere? > > Regards, > > Johannes Kinscher > > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://listgateway.unipi.it/mailman/listinfo/ntop > _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
