Skip to main content

How to get server's current memory usage using cPanel API?

Comments

3 comments

  • Jcats
    Depends, how are you trying to obtain it? Only via the API or? The easiest way would be SSH using the command:
    free -m
    but yeah would come down to the method in which you want to obtain it.
    0
  • red whale
    Depends, how are you trying to obtain it? Only via the API or? The easiest way would be SSH using the command:
    free -m
    but yeah would come down to the method in which you want to obtain it.

    Hi, my server administrator doesn't allow me to use the command line. Besides, I can't read the file "/proc/lve/list", which can also get the usage information of system. It seems the file doesn't exist. So how can I get the current memory usage and other usage information without using command line or reading the file "/proc/lve/list"?
    0
  • cPanelMichael
    Hello, The "lvetop" utility provides the information you are seeking: CloudLinux Documentation However, it's not available without root access to the server (and shell access). There's no corresponding UAPI/cPanel API 2 function for this purpose. I recommend opening a feature request for it via: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.