Jump to content

Overages and Plesk Question


timraines

Recommended Posts

Hey

 

I am really happy that v4.1.1 now has built-in support for overages billing.. it's been a long wait but worth it! My question is basically about the behavior of the new feature in respect to how soft limits apply.

 

We bill shared hosting customers per-domain. So in Plesk the Domain Template will have the limits set and the Client Template is set to unlimited. We have many customers with multiple domains under the same client login so it works best to bill them this way. I would like to know since the new overages feature reports "unlimited" in WHMCS will the soft limits for the product/service still work? It is reporting the correct usage for the client. So I am guess the Limit value is coming from the Client entity in Plesk. So does the overages get check against the domains current Usage value or the Limit value set for the client.

 

Let me know if this does not make sense?

 

Also probably asking to much here .. but if clients purchase Add-ons for say more disk space or bandwidth, I would assume the overages feature wouldn't talk to the values in add-ons.. the only solution I can come up with at the moment is to make a series of new plans and just tell customers to upgrade the plan rather than Add-on to the existing plan.. Would that be the only way around this?

Link to comment
Share on other sites

If you mean this:

Client Name/Domain Disk Usage Disk Limit % Used BW Usage BW Limit % Used

 

XXXXXXXXXXXXXXXXX 1506 MB Unlimited MB N/A 547 MB Unlimited MB N/A

 

i have the same problem, i have plesk 9.X.X

 

under Products/Services => Other i´m set

Soft Disk Limit MB

Soft Bandwidth Limit MB

Disk Overages Cost Price Per MB

Bandwidth Overages Cost Price Per MB

 

and Overages Billing Tick to enable is enabled

 

Я извеняюся за мой английский

Sorry for my bad english ;o)

Link to comment
Share on other sites

It is reporting the correct usage for the client. So I am guess the Limit value is coming from the Client entity in Plesk. So does the overages get check against the domains current Usage value or the Limit value set for the client.

 

Just to follow up on this post. Regarding the statement I made above, I notice now it actually reports the same usage for each domain the client owns under the same login in WHMCS. So it is using the Client Usage statistics from Plesk to fill in the values when you go view the details of a Domain via WHMCS .. seems this feature still has some fine tuning to be done?

 

How come no one has responded to this topic? Has anybody even started using the overages feature yet or am I the only one.. everyone was so desprate for the feature I would imagine others are running in to challenges similar to this yeah?

Edited by timraines
Link to comment
Share on other sites

I guess you are lucky. I posted a support request beause WHMCS does not report overages on any of our servers. It would help if there was some kind of documentation on this.

Should you setup your Plesk server as Plesk or Plesk Reseller?

 

Unfortunately if Plesk/Pleks Reseller is choosen setting the limits per product within WHMCS is not supported because Pleks would not use them. It would be nice though to be able to set the limits within WHMCS just to report against them and have them shown on the customer products pages as well.

Link to comment
Share on other sites

Last night I have been playing around with the Plesk API and CURL and it turns out that it is possible to get Diskusage and Traffic statistics from Plesk 8.06 and Plesk 9 machines, see below.

 

It would be nice to see this implemented in WHMCS since Plesk 8.0.0 supports setting limits and reporting usage by using their api.

 

Domain id: 1 xxxxxxxx.xxx

IP adres: xx.xxx.xxx.xxx

Max DiskSpace: 104857600 MaxTraffic: 1073741824

Traffic Last Month: 83274415 Traffic Yesterday: 3786212

Disk Usage: 31883264 Httpsdocs: 389120 Mailboxes: 13987840 Maillists: 0 Databases: 8192 SubDomains: 0 WebApps: 0 Web Users: 4096 Logs: 8310784

 

Domain id: 4 xxxxxxx.xxx

IP adres: xxx.xxx.xxx.xxx

Max DiskSpace: 78643200 MaxTraffic: 524288000

Traffic Last Month: 0 Traffic Yesterday: 0

Disk Usage: 794624 Httpsdocs: 417792 Mailboxes: 61440 Maillists: 0 Databases: 8192 SubDomains: 0 WebApps: 0 Web Users: 4096 Logs: 651264

Link to comment
Share on other sites

  • 3 weeks later...

I fooled around with PHP and I am now able to fetch the usages statistics from both Plesk 8.6 and Plesk 9 machines with one script without any problems.

The collected data is then stored into WHMCS database and WHMCS now shows the correct data with each client in WHMCS.

Furthermore WHMCS did create and send overage invoices nicely on November 30th.

 

I still run the script manually to see if there are any problems and then use the DiskUsage script provided by WHMCS to show the results. The goal, until WHMCS fully supports Plesk, is to make cron run the script everynight to update the statistics for every client on a daily basis.

 

In the Attached image you can see the results as shown by the Disk Usage report. The report was somewhat adjusted to show the usage/overages in different colors. The Domainnames have been erased for privacy reasons.

diskusage.jpg

Link to comment
Share on other sites

Hey mate

 

This looks good.. thanks for following up on this post.. I am suprised that not more people have had same troubles?

 

Would you be willing to share with me your code .. I was looking at writing my own script to and adding it into the a new cron .. let WHMCS handle the billing.. which as you said seems to working well.. invoices are generated at end of month.

 

Matt, as a side note if you read this thread .. next release should have an option to add overages as a billable items and have it so they are flagged for "next invoice" in my case not big issue.. but not everyone bills at end-of-month and might require overages at different times in the month based on when the customer signed up.

Link to comment
Share on other sites

Hi Tim,

 

I'm testing the cron, it did ran fine the last couple of days. All my invoices were generated and send to the customers and WHMCS retains the data in the database just as you might expect.

 

I am more then willing to share the script, it's no big secret ;)

I am surprised too by the lack of response from Plesk users.

 

In WHMCS 4.12 you have two options to set for the billing:

1 ) Calculate & invoice on the last day of the month independantly from the related product

2 ) Calculate on the last day of the month but include on the next invoice to generate for the client

 

You should have a fixed moment in time to calculate the overages, calculating them on the last day of the month should be the first day of the month otherwise you might loose one days traffic in the calculations.

With Option 2 (above) you calculate the traffic but the data is not invoiced until the next invoice for Products/Services is generated for the customer(s).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated