The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Updating Stats

Discussion in 'General Discussion' started by ManXP, May 20, 2007.

  1. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Is there any way to run /scripts/fixwebalizer and /scripts/runweblogs for ALL accounts on server at the same time? I tried to run /scripts/fixwebalizer * but it didn't work.

    I need it, because awstats stopped working for 600+ domains on server, and awstats.conf files even do not exist for these accounts. Trying to run scripts for all accounts one by one is a real pain in the a** :(
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    /scripts/runstatsonce


    will run the stats for all accounts
     
  3. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    6
    Yes, I was trying to use this command for weeks, but it didn't help. It always displays this message, and exists (and stats still not work for weeks):


    ==> WARNING: The configured processor count does not match the
    ==> actual processor count (4)! Running log analysis programs
    ==> on this system may cause excessive load! You should set "extracpus"
    ==> to "0" in /var/cpanel/cpanel.config if this is not ok.
    ==> cPanel Log Daemon version 22.2
    ==> Shared RRDTOOL support enabled
    ==> Starting cpbandwd (bandwidth monitoring for IMAP/POP)
    cpbandwd is already running.
    ==> Ignoring lastrun files and running all stats now
    ==> cpanellogd will exit after stats have run
     
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    You can change "extracpus" value in /var/cpanel/cpanel.config file and restart the cpanel service to pick the changes or you can put the following code in a file updatestats.sh and just execute it manually or via cron as sh updatestats.sh:

    #!/bin/bash

    cd /var/cpanel/users

    find . -type 'f' | while read CPUSER; do
    /scripts/runweblogs ${CPUSER}
    done
     
Loading...

Share This Page