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

Ho to activate or start collecting statistics ?

Discussion in 'Plesk 11.x for Linux' started by andyas, Jul 20, 2012.

  1. andyas

    andyas New Pleskian

    10
    35%
    Joined:
    Jul 20, 2012
    Messages:
    7
    Likes Received:
    0
    Hello @

    I am new to this forum and also using the parallel plesk panel only for some weeks and I have to say I am not very familiar with the advanced stuff.
    I am using version 11.0.9

    My problem is that website is online now for almost 1 month and no statistic or usage data are collected:
    " disk space used: 0 data transfer this month: 0 "
    "This is the placeholder for Web statistics. If you see this page, that means that statistics for your server was not gathered yet, or bandwidth was not used. Statistics is typically set to run once every 24 hours. If you do not see a change to this page in the next 24 hours contact your server administrator for assistance. This page has been automatically generated by Plesk. "

    I made some research here on the forum but I could only find solutions for older versions and those one didnt give me any results...

    Please any help or ideas more than welcomed ...
    Txs
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    You can calculate the domain name statistics by

    /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com

    But also make sure you have turned on log rotate for that domain name for future stats
     
  3. andyas

    andyas New Pleskian

    10
    35%
    Joined:
    Jul 20, 2012
    Messages:
    7
    Likes Received:
    0
    HI, txs for answer. I am receiving a "No permission" message to this command .. I am the only user and admin of this server, I have to login with my user name and passw., no?not with the Ftp credentials?

    Sorry, but as said everything is new for me, I come from a shared hosting account where everything was on button press ... and the true is that the starter guide has a lot of lacks of information, they are some basic steps missing .

    Also how do I turn on the log rotate for that domain?
    Txs Andy
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    You should use root user for this command.
     
  5. andyas

    andyas New Pleskian

    10
    35%
    Joined:
    Jul 20, 2012
    Messages:
    7
    Likes Received:
    0
    thxs. yes that was the problem, now I am in root I have permission but the answer is: Option "domain" is not recognized.

    I typed: /usr/local/psa/admin/sbin/statistics --calculate-one --mydomain=mydomain.com
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to run

    # /usr/local/psa/admin/sbin/statistics --help

    and find that correct option is --domain-name but not --mydomain
     
  7. andyas

    andyas New Pleskian

    10
    35%
    Joined:
    Jul 20, 2012
    Messages:
    7
    Likes Received:
    0
    txs a lot really for taking time on this. Yes, I undertand now the "domain-name=mydomain.com"
    well this is what I get as answer on bought lines, I dont know if second one worked.....or no?...:


    /usr/local/psa/admin/sbin/statistics--calculate-one--domain-name=mydomain.com
    No such file or directory

    /usr/local/psa/admin/sbin/statistics --help
    Usage: /usr/local/psa/admin/sbin/statistics [ options ]
    --calculate-all Calculate statistics for all domains
    --calculate-one Calculate statistics for <domain-name>
    --domain-name|-d <string>
    --help|-h display this help and exit
    If no options specified - calculate statistics for all domains
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    It should be

    # /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=mydomain.com

    instead of

    # /usr/local/psa/admin/sbin/statistics--calculate-one--domain-name=mydomain.com
     
  9. andyas

    andyas New Pleskian

    10
    35%
    Joined:
    Jul 20, 2012
    Messages:
    7
    Likes Received:
    0
    worked very good and everything there, the problem I have now that the stats stop to update, shows only till 23 July... do I have to manually update the stats or there is a way to automatically have the updates?
    Txs
     
Loading...