Skip to main content

Call functions like cPanel?

Comments

3 comments

  • Shavaun

    You might find our API documentation helpful: https://api.docs.cpanel.net/ I believe you'll be able to retrieve the data you want with API calls.

    0
  • tejli009
    Thank you for your answer but am not able to find it. I need something like: substr(file_get_contents("/proc/meminfo")); and to show: 19% and not the whole memory info.
    0
  • cPanelMichael

    Hello :) You may need to develop a custom script that takes the output from an API function and parses the data into an easy-to-read format. Here are some functions that may help you: https://api.docs.cpanel.net/whm/introduction   Or, if it's only the memory output you are seeking, you could develop a script that puts the output from the "free -m" command in a better format. Thank you.

    0

Please sign in to leave a comment.