ntop missing GeoIP Files in debian

Recently I have to install network traffic monitor package on Debian 6.0. After obtaining ntop4.0.3.deb via unstable package, I found out some error msg at the initial setup. Here are the error msg:

ntop: **ERROR** GeoIP: unable to load file GeoLiteCity.dat
ntop: **ERROR** GeoIP: unable to load ASN file GeoIPASNum.dat

Then I downloaded the data from the following url:

http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz


Put the above data in the /usr/share/GeoIP/

and ntop is working fine with geography display.

About these ads

3 thoughts on “ntop missing GeoIP Files in debian

  1. I checked on a Ubuntu 10.11 for version 4.0.3 of ntop and found out it searches in

    ./GeoLiteCity.dat
    /usr/share/ntop/GeoLiteCity.dat
    /usr/local/etc/ntop/GeoLiteCity.dat and
    /etc/GeoLiteCity.dat

    You can find out the other missing pathnames with the following commands:

    # uname -a
    Linux xxxxxx 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    # dpkg -l ntop
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-======================================-======================================-============================================================================================
    ii ntop 3:4.0.3+dfsg1-3build1 display network usage in web browser
    # strace -e file ntop 2>&1 | grep GeoLiteCity.dat
    stat(“./GeoLiteCity.dat”, 0x7fffbf774eb0) = -1 ENOENT (No such file or directory)
    stat(“/usr/share/ntop/GeoLiteCity.dat”, 0x7fffbf774eb0) = -1 ENOENT (No such file or directory)
    stat(“/usr/local/etc/ntop/GeoLiteCity.dat”, 0x7fffbf774eb0) = -1 ENOENT (No such file or directory)
    stat(“/etc/GeoLiteCity.dat”, 0x7fffbf774eb0) = -1 ENOENT (No such file or directory)
    Mon Feb 27 16:45:49 2012 **ERROR** GeoIP: unable to load file GeoLiteCity.dat

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s