1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Disable Awstats, transfer and disk space stats stop to work

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by SalvadorS, Dec 14, 2009.

  1. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Hello,

    I diseable AWstats from my 9.2.3 plesk server. I did it because:

    * Awstats starts at a fixed hour that we can´t modify.
    * Awstats was working arround 8 hours for 300 domains.
    * Load of the server was at least 5 points higher when awstats was running.

    So I edit /etc/cron.daily/50plesk-daily and comment this line:

    ...
    # install_statistics
    # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
    ...

    Since then awstats is not running. The problem is that the transfer and the disk usage of the domains aren´t updated every day.

    Questions:

    1.- How can I update transfer and disk usage of the domains without running awstats?

    2.- Can I run Awstats for a partoicular domain only without running for the whole server?

    Wait your answer

    Thanks a lot
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    1. You can't separate transfer, disk usage, etc and awstats statistics. It is hardcoded in /usr/local/psa/admin/plib/DailyMaintainance/script.php script.

    2. Use 'domain' utility for this purpose:

    As you can see you can disable awstats for particular domains.
     
  3. SalvadorS

    SalvadorS Regular Pleskian

    29
    90%
    Joined:
    Nov 12, 2009
    Messages:
    282
    Likes Received:
    2
    Thanks for your quick reply. If I disable awstats for a domain from the domain utility, transfer and disk usage will be updated?

    Regards
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Yes, it will be updated with /etc/cron.daily/50plesk-daily but you should uncomment line with script.php. Awstats will not be updated for domains with disabled webstat.
     
Loading...