Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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** :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,772
    Likes Received:
    92
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    /scripts/runstatsonce


    will run the stats for all accounts
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ManXP

    ManXP Well-Known Member

    Joined:
    Feb 3, 2005
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    156
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    3
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice