Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-19, 01:23:33

Author Topic: auto generate stats  (Read 6356 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
auto generate stats
« on: 2014-02-22, 07:55:07 »
My stats seem to always have 0 here and there,  awstats more than webalizer.

How do I get webalizer to update automatically (daily, twice a day) for all domains?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: auto generate stats
« Reply #1 on: 2014-02-22, 08:06:33 »
May something wrong with webalizer. As I know webalizer only for daily.

Alternatively, run cron-task with running 'sh /script/fixtraffic' (default '--day=1').
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: auto generate stats
« Reply #2 on: 2014-02-22, 17:33:44 »
Why doesn't scavenge update stats?  I have confirmed across a cluster all the same.

sh /script/fixtraffic will output webalizer at the beginning.
sh /script/scavenge no output of webalizer.

Looking at code, both call fixtraffic.php and collectquota.php, but scavenge doesn't update stats daily.  Why?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: auto generate stats
« Reply #3 on: 2014-02-22, 18:06:21 »
You need to run scavenge manually or you will have 0's ;)

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: auto generate stats
« Reply #4 on: 2014-02-22, 19:19:25 »
I have it added to cron, its also that scavenge doesn't process webalizer like fixtraffic does.  Yet, both call the same .php files.

/script/fixtraffic start OUTPUT:
Code: [Select]
Fri Feb 21 17:00:01 2014  to ... Sat Feb 22 17:00:01 2014
webalizer: cc-server.us
webalizer: convictionshosting.com
/home/httpd/cc-server.us/stats//cc-server.us-custom_log: 2014-02-21-17 2014-02-22-17
File Size is :1075
Current Position 06 lines actually processed in /home/httpd/cc-server.us/stats//cc-server.us-custom_log
Returning Total From OUT SIDE This File: 0 /home/httpd/cc-server.us/stats//cc-server.us-error_log: 2014-02-21-17 2014-02-22-17
File Size is :1601
/home/httpd/cc-server.us/stats//cc-server.us-error_log-20140130: 2014-02-21-17 2014-02-22-17
File Size is :504
/home/httpd/convictionshosting.com/stats//convictionshosting.com-custom_log: 2014-02-21-17 2014-02-22-17
File Size is :338541Current Position 0Count 1000 1393088401 1393031750 3685743 29761615 lines actually processed in /home/httpd/convictionshosting.com/stats//convictionshosting.com-custom_log
Returning Total From OUT SIDE This File: 7.5
.........

script/scavenge start OUTPUT:
Code: [Select]
In mysqldb-ch_forum mysqldb_usage equals 2 and limit is Unlimited
In mysqldb-conhosting mysqldb_usage equals 0.6 and limit is Unlimited
In mailaccount-postmaster@cc-server.usmaildisk_usage equals 0.1 and limit is Unlimited
In mmail-cc-server.us maildisk_usage equals 0.1 and limit is -In mmail-cc-server.us mailaccount_num equals 1 and limit is -In mmail-cc-server.us mailinglist_num equals 0 and limit is -In mmail-cc-server.us logo_ma
.................

Scavenge does not process webalizer, as fixtraffic does.  Please investigate.
« Last Edit: 2014-02-22, 19:29:04 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.058 seconds with 18 queries.

web stats analysis