Accessing Server Load (1min, 5 min and 15 min) along with recent processes (top) via API.

chetanmadaan

Active Member
Jun 18, 2010
38
6
58
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
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,252
313
Houston

chetanmadaan

Active Member
Jun 18, 2010
38
6
58
Thank You, I'll look into these. For some reason I didn't get the email notification about these responses.
 

chetanmadaan

Active Member
Jun 18, 2010
38
6
58
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
 

chetanmadaan

Active Member
Jun 18, 2010
38
6
58
Hi,

So, I need a CPsession ID to generate a CP Session ID? Where do I use the username/password?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,252
313
Houston
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:



The logmein module will allow secure remote logins as well as provide a cpsession ID 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