Control panel for vps user

AntoWkill

Member
Jul 31, 2013
73
1
6
Hello,
today i try to create an Control Panel for each VPS where users can enter and manage their vps. Each user have database account with VMID
I have create stop / start / shutdown button with php code (script login in ssh and execute command: qm start /stop /shutdown [VMID on database]). But i need to insert in this panel the Statics of vps like: ram usage, internet using, disc io etc. I have found the link of the image of the statics but for see it every user need to be login in proxmox server or user can't see banner. I have try to do script login in server with a curl but login do succefull but the image not see yet. How i can do visible the banner of statistics? and other features? Thanks..

PS: sorry for my bad english!
 
I have found the link of the image of the statics but for see it every user need to be login in proxmox server or user can't see banner.

Why is that a problem? You cant give unauthenticated people access to the API.
 
i need a php code for login my php in my proxmox server and see to my client statics banner like: Ram usage etc