DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-05-06 00:40:26

forre
Member
Registered: 2008-04-22
Posts: 26

Log statistics for ffp 0.5

If you are interested in log statistics, I have compiled webalizer with geolizer patch.

http://www.mrunix.net/webalizer/
http://sysd.org/stas/node/10

Example pages (username=stats, password=stats):
http://sysd.org/hybrid/stats/

Following packages are provided:
webalizer-2.01-10-1.tgz
GeoIP-1.4.4-1.tgz (from MaxMind)
db-4.6.21-3.tgz  (from Oracle)
gd-2.0.35-1.tgz
jpeg-6b-1.tgz
freetype-2.3.5-1.tgz
libpng-1.2.26-1.tgz
fontconfig-2.5.0-1.tgz

Installation instruction and packages can be found here:
http://81.216.140.39/dns-323/packages/

Have fun.

Offline

 

#2 2009-03-08 00:50:31

marca
Member
Registered: 2007-10-13
Posts: 64

Re: Log statistics for ffp 0.5

Hey, cant reach any of these files. Would love to have this functions on my dns323

Offline

 

#3 2009-03-10 22:12:21

forre
Member
Registered: 2008-04-22
Posts: 26

Re: Log statistics for ffp 0.5

Hi,

The server has been down couple of days, in same time I was away for vacation.

The server should be up and running now.

// forre

Offline

 

#4 2009-03-11 22:27:10

marca
Member
Registered: 2007-10-13
Posts: 64

Re: Log statistics for ffp 0.5

Thanks a lot.

I can install everything and edit the config file, create the usage folder but it then stalls on (foprever until i press ctrl+c:
What can be the problem?

root@DNS-323:/mnt/HD_a2/www/pages/usage# webalizer -c /ffp/etc/webalizer.conf
Webalizer Xtended RB23 (14-Sep-2008) / Linux 2.6.12.6-arm1 / English
Copyright 2005-2008 by Patrick K. Frei
Based on Webalizer V2.01-10
Using logfile STDIN (clf)
Using default GeoIP database:
GEO-106FREE 20080901 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved
Creating output in current directory
Hostname for reports is 'DNS-323'
History file not found...

Offline

 

#5 2009-03-12 09:59:13

forre
Member
Registered: 2008-04-22
Posts: 26

Re: Log statistics for ffp 0.5

Hi,

does /ffp/etc/webalizer.conf exist?

Which editor have you used to edit the configuration file?

It seams that the logfile not has been specified in the configuration file and using STDIN insted.

cut from webalizer webalizer.conf.sample:

# LogFile defines the web server log file to use.  If not specified here or
# on the command line, input will default to STDIN.  If log filename ends in
# '.gz' (ie: a gzip compressed file) or in '.bz2' (ie: a bzip2 compressed
# file), it will be decompressed on the fly as it is being read.

#LogFile        /var/lib/httpd/logs/access_log

if you followed the instructions, the output should be like this
...
Using logfile /mnt/HD_a2/www/logs/access.log (clf)
Using GeoIP database /ffp/share/GeoIP/GeoIP.dat
...

//forre

Offline

 

#6 2009-03-12 18:36:13

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Log statistics for ffp 0.5

Just curious, looks like webalizer has "native Geolocation services". Anyone know the diff between GeoIP and native support? Looks like it'll be exactally the same rendering GeoIP useless.... Dunno tho.

Offline

 

#7 2009-03-13 13:00:45

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Log statistics for ffp 0.5

Looks like the devs provide their own Geolocation database to assign countries to resolved addresses. Other than that, I don't think there's much of a difference.

Offline

 

#8 2009-03-13 22:37:53

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: Log statistics for ffp 0.5

Yea. I've been running webalizer since I posted. I just compiled it with the built-in GeoDB instead of GeoIP. Also, there is "native" GeoIP support as well in webalizer. Native as in you can configure --with-GeoIP if you have the GeoIP library installed. Looks like that patch is rendered useless with perhaps the exception of using MB instead of KB..... That could be easily reverse engineered from the patch.

Anyhoo.... Looks the same. Country flags and what not. You can password protect your /wwwroot/webalizer directory in lighttpd.conf and even use mod.redirect to force an SSL connection.... Put something like this in a /ffp/etc/fun_plug.local:

Code:

if [ -f /ffp/var/packages/webalizer-* ]; then
   if ! crontab -l | grep webalizer > /dev/null 2>&1 ; then
      crontab -l > /ffp/tmp/crontab.tmp
      echo "*/30 * * * * /ffp/bin/webalizer" >> /ffp/tmp/crontab.tmp
      crontab /ffp/tmp/crontab.tmp
      rm /ffp/tmp/crontab.tmp
   fi
fi

Last edited by madpenguin (2009-03-13 22:42:37)

Offline

 

#9 2009-03-15 21:05:06

marca
Member
Registered: 2007-10-13
Posts: 64

Re: Log statistics for ffp 0.5

forre wrote:

Hi,

does /ffp/etc/webalizer.conf exist?

Which editor have you used to edit the configuration file?

It seams that the logfile not has been specified in the configuration file and using STDIN insted.

cut from webalizer webalizer.conf.sample:

# LogFile defines the web server log file to use.  If not specified here or
# on the command line, input will default to STDIN.  If log filename ends in
# '.gz' (ie: a gzip compressed file) or in '.bz2' (ie: a bzip2 compressed
# file), it will be decompressed on the fly as it is being read.

#LogFile        /var/lib/httpd/logs/access_log

if you followed the instructions, the output should be like this
...
Using logfile /mnt/HD_a2/www/logs/access.log (clf)
Using GeoIP database /ffp/share/GeoIP/GeoIP.dat
...

//forre

Hi Forre,

yes the file does exist, and has been copied from /examples directory. It has then been "chomd 0777" and then edited using Notepad++ from the samba share (windows). I just tried to redo everything but get the same results.


/m

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB