ntop didn't recognize an existing interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntop (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ntop
Description: Ubuntu 8.04
Release: 8.04
ntop:
Instalados: 3:3.2-10.1
Candidato: 3:3.2-10.1
Tabla de versión:
*** 3:3.2-10.1 0
500 http://
100 /var/lib/
When I run ntop like this "/etc/init.d/ntop start" I got
Starting network top daemon: ERR: interface ppp0 is DOWN...
and ppp0 is *not* down.
The problem here is the system language(Spanish i my case) because ifconfig output is in Spanish and ntop is checking the interfaces supposing that the output is in English. So the problem is here (about line 61 of /etc/init.d/ntop)
while read iface ; do
if ! ifconfig "$iface" | grep -w UP >/dev/null; then
echo "ERR: interface $iface is DOWN..."
where ntop start scritp search for the word "UP" in the output of ifconfig and it didn't find it because, in my case, ifconfig says "ARRIBA" (UP in Spanish) and for that the check fails.
Here is a patch. I use netstat instead of ifconfig because it doesn't depends on language settings.
From netstat man page.
...
--interfaces, -i
Display a table of all network interfaces.
...
It display *only* interfaces that are UP (ARRIBA).
Also see this bug https:/ /bugs.launchpad .net/ubuntu/ +source/ ntop/+bug/ 231024.
If you apply both patches, apply 257466 first.