Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2008, 13:52
nullpointer nullpointer is offline
Junior Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default weird vlogger (&lighty) problem

Hello folks,

I have followed Falko's tutorial on splitting log files with vlogger and it is acting quite strange.

Here are my settings (which are exactly the same by the look of it)
Code:
#!/bin/sh

logdir=/var/log/lighttpd
webalizerconf=/etc/webalizer/webalizer.conf
logdate=`/bin/date -d "1 day ago" +%m%d%Y`

cd ${logdir}
for directory in *
do
  if [ -d ${directory} ]; then
    /usr/bin/webalizer -c ${webalizerconf} -n ${directory} \
    -s ${directory} -r ${directory} -q -T -o /var/www/vhosts/${directory}/stats \
    ${logdir}/${directory}/${logdate}-access.log
  fi
done

exit 0
..and I have a cron entry like this:
Code:
0 4 * * * /root/scripts/webstats &> /dev/null
The problem is every night when the webalizer is run, the generated stats only contain 'yesterday', and all the previous traffic stats are gone. ex: (I have installed vlogger more than a month ago, it is only now that I realize it is doing these things )

Has anyone faced this before?

Any suggestions would be appreciated


Thanks.

Last edited by nullpointer; 23rd March 2008 at 15:29.
Reply With Quote
Sponsored Links
  #2  
Old 23rd March 2008, 15:28
nullpointer nullpointer is offline
Junior Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

..and this is what I got today:




it got rid of all the previous days!
Reply With Quote
  #3  
Old 23rd March 2008, 18:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in /etc/webalizer/webalizer.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 23rd March 2008, 18:43
nullpointer nullpointer is offline
Junior Member
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What's in /etc/webalizer/webalizer.conf?
Hi Falko,

I haven't touched the webalizer config and it is the stock file.

Because it is around 600 lines I have pasted it here : http://pastebin.ca/954090


I wonder if the 'Incremental' setting should be set to yes? (EDIT: I've tried it and it didn't change anything...)


Thanks.

Last edited by nullpointer; 24th March 2008 at 02:14.
Reply With Quote
  #5  
Old 24th March 2008, 12:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Please uncomment the HistoryName line:
Code:
HistoryName    webalizer.hist
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Weird problem when sending email from a PHP form. edge Installation/Configuration 5 5th September 2006 16:57
Weird postfix problem: mail gets delivered again and again to infinity mority Server Operation 3 11th August 2006 16:48
Very weird Apache + iptables problem snowfly Server Operation 1 8th August 2006 01:51
weird problem display £ signs in web pages paulley Server Operation 2 27th June 2006 22:16


All times are GMT +2. The time now is 12:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.