ntop didn't recognize an existing interface

Bug #257466 reported by alej0
4
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://cl.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

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.

Revision history for this message
alej0 (alej0varas) wrote :

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ntop - 3:4.0.3+dfsg1-1

---------------
ntop (3:4.0.3+dfsg1-1) unstable; urgency=low

  [ Jordan Metzmeier ]
  * New upstream release (Closes: #522042)
  * Move data files to /usr/share/ntop (Closes: #595450).
  * Package architecture independent data in a separate ntop-data package.
  * Use debhelper 7.
  * Update Standards-Version to 3.9.1.
  * Depend on python-mako.
  * Do not include ntop.txt in binary packages as it is a copy of the man
    page.
  * Do not include NEWS, as it is outdated.
  * Switch to package source version 3.0 (quilt).
  * Add password creation to debconf
  * Changed init script to fix localization problems (thanks to Alejandro
    Varas <email address hidden>, LP: #257466)
  * Remove manual update-rc.d calls from postrm and postinst. debhelper adds
    this for us.
  * Add pre-depends on adduser for postinst script.
  * Fix errors in the manpages: fix-manpage-errors.patch.
  * Added fixes for matching active interfaces.
  * Added a watch file.

  [ Ludovico Cavedon ]
  * Remove direct changes to upstream tree, and move them into specific patch
    files:
    - fix-manpage-errors.patch: fix typos in ntop.8.
    - dot-path.patch: fix path of /usr/bin/dot executable
  * Add patches:
    - reduce-autogen-purged-files.patch: prevent agutogen.sh from reamoving
    too many files during cleanup.
    - Add build-without-ntop-darwin.patch, to fix compilation without
    ntop_darwin.c.
  * No longer add faq.html, as it is not distributed in the upstream tarball.
  * Use ${source:Version} in control file. Have ntop-data recommend
    ntop.
  * Rename dirs to ntop.dirs and keep only empty directories that need
    to be created.
  * Remove var/lib from ntop.install file, as it is empty (keeping it in
    ntop.dirs).
  * Update po files.
  * Breaks and Replaces instead of Conflitcs for ntop-data.
  * Use a longer package description.
  * Remove useless configure options from debian/rules.
  * Move private shared libraries libraries in /usr/lib/ntop.
  * Add change-plugin-dir.patch for adjusting plugin directory.
  * Remove development files.
  * Use system library for MochiKit.js.
  * Rewrite DEP5 copyright file.
  * Repackage upstream tarball in order to remove non-DFSG-compliant code. Add
    get-orig-source.sh script and get-orig-source target in debian/rules.
  * Add explanation to README.Debian why geolocation is no longer working.
  * Add avoid-copy-maxmind-db.patch to prevent copying of Geo*.dat
    files.
  * Remove old unused patches.
 -- Ubuntu Archive Auto-Sync <email address hidden> Mon, 20 Dec 2010 10:21:33 +0000

Changed in ntop (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.