Accessing Server Load (1min, 5 min and 15 min) along with recent processes (top) via API.
Hi,
I am working on putting together a google data studio report to monitor a few different servers from one centralized location and I am hoping I would be able connect to the server and somehow get the server load and processes via api?
Is it possible?
Thank You,
Chetan
-
You would most likely want to use this one instead WHM API 1 Functions - systemloadavg - Developer Documentation - cPanel Documentation you can also just use top or uptime in a script 0 -
Thank You, I'll look into these. For some reason I didn't get the email notification about these responses. 0 -
One Quick question, might be obvious to others. The URL needs CPsession id! That's making sure I don't hardcode by username/password into the url. In that case, how may I generate the CP session ID? Thanks, Chetan 0 -
This will create a user session for you including a cpsession ID WHM API 1 Functions - create_user_session - Developer Documentation - cPanel Documentation 0 -
Hi, So, I need a CPsession ID to generate a CP Session ID? Where do I use the username/password? 0 -
I think there's some confusion about authentication here on my end and not knowing what you were doing initially. The following goes over the different authentication methods: Guide to API Authentication - Secure Remote Logins - Developer Documentation - cPanel Documentation This goes over some troubleshooting steps: Guide to Testing Custom Code - Developer Documentation - cPanel Documentation 0
Please sign in to leave a comment.
Comments
7 comments