LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-13-2004, 05:18 PM   #1
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
webalizer resolving ip countries?


I managed to get libgeoip1 and geoip-bin installed on my debian sarge webserver. Now, how do I tell webalizer to use the feature and resolve ip countries? Its reports can't solve countries, so I guess I have to set something, but where?
 
Old 12-13-2004, 06:07 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I have no idea what library and/or binary you are referring to in your post, but I have been using webalizer for quite awhile. I simply run "webazolver" prior to running webalizer in the cron script I created. By running webazolver first, the DNSCache file can be specified in the webalizer .conf file and the resulting country graphs and charts will be created.

FWIW: Heres the cron job I use:
Code:
#!/bin/bash
# Update the DNS cache for each virtual site. Each site is configured with its 
# own log directory.
for dir in /var/log/httpd/*/access_log; do
        if [ -s $dir ] ; then
           /usr/bin/webazolver -Q -N 10 -D /tmp/webalizer/dns_cache.db $dir
        fi
done

# Generate a webalizer report for each virtual. Each virtual has its own
# webalizer .conf file.
for conf in /etc/webalizer/*.conf; do
        if [ -s $conf ] ; then
           /usr/bin/webalizer -Q -c $conf >/dev/null 2>&1
        fi
done
exit 0
 
Old 12-14-2004, 11:59 AM   #3
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Original Poster
Rep: Reputation: 46
Ok, tried to run webazolver, but what cache is this one it asks?
 
Old 04-27-2011, 12:09 AM   #4
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Quote:
and the resulting country graphs and charts will be created.
I am only general user of webalizer which available from cPanel of my hosting company. Yea there are country graph and stats generated at the bottom of the report.

From the graph, I found most of the connections are from "US commercial" and occupy most of the bandwidth.

Howto get rid of the unwant connections? I have no access to the apache http.conf but I can have my own .htaccess file.

Last edited by fhleung; 04-27-2011 at 12:17 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
geocoder for countries other than US and Canada MikeyCarter Linux - Software 1 07-07-2005 06:54 AM
Webalizer - countries - a different issue nickd63 Linux - Networking 0 12-10-2004 01:39 PM
Webalizer and resolving countries wolftechmn Linux - General 6 06-17-2004 02:59 PM
/etc/hosts resolving before DNS resolving ? markraem Linux - Networking 4 11-02-2003 04:54 AM
Exporting Linux to other countries from US elzmaddy Linux - General 7 05-25-2003 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration