LVE Script/API access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ha
    Junior Member
    • Mar 2021
    • 5

    #1

    LVE Script/API access

    get Lightweight Virtual Environment via script
  • ha
    Junior Member
    • Mar 2021
    • 5

    #2
    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 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

    Comment

    • iseletsk
      Senior Member
      • Dec 2017
      • 1199

      #3
      There is no cPanel API for that, but you can store lve data centrally, and use lveinfo / lvechart to retrieve the data:


      Plz, see section on MySQL/PostgreSQL integration.

      Comment

      • ha
        Junior Member
        • Mar 2021
        • 5

        #4
        Hello Igor,

        thank you for your answer! I will check/test this right away!

        Comment

        • ha
          Junior Member
          • Mar 2021
          • 5

          #5
          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

          Comment

          • iseletsk
            Senior Member
            • Dec 2017
            • 1199

            #6
            The info is automatically deleted after two months.

            Comment

            • ha
              Junior Member
              • Mar 2021
              • 5

              #7
              And there is now way to setup the LVE in a way, that NOTHING gets deleted?

              Comment

              Working...