awstats run every hour

Discussion in 'Tips/Tricks/Mods' started by compugraphix, May 4, 2015.

  1. compugraphix

    compugraphix Member

    What is de the best / preferred way to run awstats every hour on a server?
    Is this still the best methode?
    https://www.howtoforge.com/community/threads/howto-run-awstats-from-the-command-line.49603/
    And what crontab should i edit to get this working?
    Thanks in advance.

    I ask this question because if i run /usr/local/ispconfig/server/cron_daily.sh, the time i see in the stats is changed to the newly run time, but the data hasn't changed, so no new stats data is added to awstats. I only see the data of the nightly run. But not the updated data i would like to see.
     
    Last edited: May 4, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that should still work.
     
    compugraphix likes this.
  3. compugraphix

    compugraphix Member

    But why does the script not update the stats then?
    I don't see for example the data for today, only yesterday.
    So i think the recreation of the stats is incomplete, is there another script i need to run to update the stats data so i get stats every hour?

    Thanks for the quick response Till.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It might be that you will have to create a custom nginx config file for the website that points to dodays log and not the yesterday access log file.
     
  5. compugraphix

    compugraphix Member

    It's a debian / apache server with ispconfig 3.0.5.4p5, so no nginx here.
    but there is no other way to get the stats updated every hour, as far as you know?
     
    Last edited: May 4, 2015
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Sorry, I meant awstats config file.

    No. You have to run awstats to update the stats html file of the website.
     

Share This Page