New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
WHMCS stock auto-update
RobertClarke
Member, Host Rep
I believe there has been a thread on this in the past, but has anyone looked into doing a stock-auto updater addon for WHMCS? A few people have talked about doing it, but I haven't actually seen it in action yet. Obviously I'm looking for compatibility with SolusVM.
Has anyone seen/heard of this sort of addon in active production?
Comments
You mean you need to set everything out of stock sometimes, or what?
I can build one.
I am going to build one using the solus API as mentioned on Skype. To set stock to th actual availability as per ram ip disk and amount of vm on each node
You can just write a simple hook that updates the stock level in the DB after an account is terminated or whatever. It's what we use
Hey Robert,
I sell Minecraft hosting and we have one setup here: http://minerack.org
Pulls from the multicraft api every 3 minutes then edits the MySQL, was really easy to do.
Connor
Looks like there's currently an unresolved issue with @soluslabs making it impossible to gather the for VZ nodes, meaning that something like this is impossible:
http://forum.soluslabs.com/showthread.php/2246-Missing-Data-in-Api-Call-node-statistics
http://forum.soluslabs.com/showthread.php/4666-API-node-statistics-empty-for-allocatedmemory-allocatedbandwidth
@RobertClarke. Fuck with it till it works.
So just connect to solusvm database directly then?
$api = date("d");
Then just use $api, which has the a value that changes every day.
@Corey I shouldn't have to dive into the SQL database and build my own free memory variable, when I should be able to extract it from an array in the API.
Yea but it's still possible.
Looks like you'll never get this then, since Solus doesn't store disk free/used.
Thread closed.
haha what a great response... I thought about saying that.