LVE Script/API access
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Harald Angel
  2. 26.01.2012
  3.  Subscribe via email
get Lightweight Virtual Environment via script
Rate this post:
  1. 26.01.2012 08:01:37
  2. # 1
Harald Angel Accepted Answer
Posts: 4
Joined: 26.01.2012
0
Votes
Undo
Hello!
We are using cpanel & cloud linux. Everything is working great in WHM and CPanel!
The customer can also see the LVE in cPanel right now (CPU Usage, Memory Usage, Entry Processes).

Now, we want to build our own User Interface and manage everything via the cPanel API (API1, API2, ..)
Unfortunately, we didn\'t find a way to receive the LVE data via script (PHP).

Is there any possibility or can someone provide a snipped of code how to do this?

Thank you in advance
Harald
  1. 28.01.2012 07:01:20
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
There is no cPanel API for that, but you can store lve data centrally, and use lveinfo / lvechart to retrieve the data:
http://www.cloudlinux.com/docs/lvestats-0.5.13.php

Plz, see section on MySQL/PostgreSQL integration.
  1. 30.01.2012 08:01:39
  2. # 3
Harald Angel Accepted Answer
Posts: 4
Joined: 26.01.2012
0
Votes
Undo
Hello Igor,

thank you for your answer! I will check/test this right away! :)
  1. 31.01.2012 04:01:46
  2. # 4
Harald Angel Accepted Answer
Posts: 4
Joined: 26.01.2012
0
Votes
Undo
Works fine...! One question:
Is it possible to change the behavior, that logs get deleted after a time?
Thank you for a short info!
Best regards
  1. 31.01.2012 05:01:48
  2. # 5
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
The info is automatically deleted after two months.
  1. 31.01.2012 05:01:31
  2. # 6
Harald Angel Accepted Answer
Posts: 4
Joined: 26.01.2012
0
Votes
Undo
And there is now way to setup the LVE in a way, that NOTHING gets deleted?
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.