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