• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Subscription Statistics: Traffic + Disk Usage

Capitan

New Pleskian
Hi

I'd like to allow my hosted websites to view their Traffic and Disk Usage, but I don't want to give them access to Plesk.

They are all running on a LAMP CMS
I'm assuming this data will be stored in the 'psa' database somewhere

Does anyone have advice for:
- finding that data in psa
- retreiving it within the subscriptions
 
You could use the Plesk XML API to retrieve the subscriptions traffic and disk usage. More the specific the get_traffic option to retrieve traffic data and the webspace>disk_usage option for disk space.

Using the XML API would be a better option imho than getting any data directly from the Plesk database as the database schema might change with Plesk updates.
 
Last edited:
Another good option, true! Thank you.
I think Rasp's suggestions will best fit the requirement in this instance
 
Back
Top