webalizer stats no longeur updated

Discussion in 'General' started by pythonman, Jan 7, 2009.

  1. pythonman

    pythonman New Member

    Hello All,

    ISPConfig split correctly all logs and all log are updated correctly, some site have their stats updated for Jan 2009 but some other reseller sites stats stopped in Dec 2008 .

    from crontab
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php: work
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php: work
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php: work
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php: work

    and I have no quota alert.

    ISPConfig 2.2.19

    sorry for bad english and thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to delete the webalizer.hist and webalizer.current files in the stats directory of the sites were webalizer does not work correctly and then run:

    /root/ispconfig/php/php -q /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
     
  3. pythonman

    pythonman New Member

    i do, but the problem still persist
    currently i use a shell script that generate the stats very well (with a cron)

    Code:
    #!/bin/sh
    for i in /home/web*
    do
            web_real_name="sitestats"
            stats_path="$i/web/stats/"
            logfile="$i/log/web.log"
            webalizer -n $web_real_name -s $web_real_name -r $web_real_name -q -T -o $stats_path -c /root/ispconfig/scripts/shell/webalizer.conf $logfile
    done
    
    
    thanks till.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    I suggest you update ISPConfig 2.2.29 - there have been some fixes in the webalizer.php script.
     
  5. commentator

    commentator Member

    same problem here
    Stats not updated since 03-01-2009

    running ispconfig 2.2.29
    update:
    Code:
    :/#  /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
    18 records (18 ignored) in 0.00 seconds
    38 records (38 ignored) in 0.00 seconds
    9498 records (9498 ignored) in 0.04 seconds
    388 records (388 ignored) in 0.01 seconds
    2737 records (2737 ignored) in 0.00 seconds
    504 records (504 ignored) in 0.01 seconds
    1 records (1 ignored) in 0.00 seconds
    278 records (278 ignored) in 0.01 seconds
    
    looks like this is the problem:
    Code:
    :/# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
    
    Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
    
    how to fix this?
     
    Last edited: Jan 9, 2009
  6. athmane

    athmane New Member

    awstats also no longeur updated.

    I am PythonMan i changed my username

    Not only Webalizer stats, awstats also no longeur updated.

    Code:
    #ls /home/www.domain.tld/web/awstats
    awstats062008.www.domain.tld.txt
    awstats072008.www.domain.tld.txt
    awstats082008.www.domain.tld.txt
    awstats092008.www.domain.tld.txt
    awstats102008.www.domain.tld.txt
    awstats112008.www.domain.tld.txt
    awstats122008.www.domain.tld.txt
    awstats.www.domain.tld.2008-06.alldomains.html
    awstats.www.domain.tld.2008-06.allhosts.html
    ...
    awstats.www.domain.tld.2008-12.alldomains.html
    awstats.www.domain.tld.2008-12.allhosts.html
    awstats.www.domain.tld.2008-12.allrobots.html
    awstats.www.domain.tld.2008-12.browserdetail.html
    awstats.www.domain.tld.2008-12.errors404.html
    awstats.www.domain.tld.2008-12.html
    awstats.www.domain.tld.2008-12.keyphrases.html
    awstats.www.domain.tld.2008-12.keywords.html
    awstats.www.domain.tld.2008-12.lasthosts.html
    awstats.www.domain.tld.2008-12.lastrobots.html
    awstats.www.domain.tld.2008-12.osdetail.html
    awstats.www.domain.tld.2008-12.refererpages.html
    awstats.www.domain.tld.2008-12.refererse.html
    awstats.www.domain.tld.2008-12.session.html
    awstats.www.domain.tld.2008-12.unknownbrowser.html
    awstats.www.domain.tld.2008-12.unknownip.html
    awstats.www.domain.tld.2008-12.unknownos.html
    awstats.www.domain.tld.2008-12.urldetail.html
    awstats.www.domain.tld.2008-12.urlentry.html
    awstats.www.domain.tld.2008-12.urlexit.html
    index.html
    
    
    there are no awstats.www.domain.tld.2009-01.*.html

    commentator: you can temporary use my small workaround script, don't forget to cron it after
    /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php (in chronological order)
     
    Last edited: Jan 9, 2009
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok,you missed to tell us that you use awstats. In this case, just reinstall the awstats plugin. It has to be reinstalled after an update.
     
  8. commentator

    commentator Member

    thanks for your reply.
    Thanks that is working.

    How to fix the log error?
     
  9. athmane

    athmane New Member

    "i'm new in php development (since nov 2008) (i'm a python developer)"

    from "/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php"

    line 125: $link = readlink("$webroot/$virtual_host");

    you have a missing virtual host root directory ie: (/home|/var/www)/webXX/ (this is not rely a problem since webalizer.php work it's just a warning)
     
    Last edited: Jan 10, 2009

Share This Page