Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Apache Status through API?

Discussion in 'cPanel Developers' started by Steve Clarke, Jan 9, 2019.

  1. Steve Clarke

    Steve Clarke Registered

    Joined:
    Apr 1, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Springdale, NL
    cPanel Access Level:
    Reseller Owner
    Is there a way to access the Apache Status details from the API? I'm referring to the details under WHM > Server Status > Apache Status from the WHM web admin.

    I'm looking to get a list of processes and the IPs hitting them so that I can filter out IPs that are doing brute force attacks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,534
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Steve Clarke,

    There's no WHM API 1 function to use, but the following command will produce the results you are looking for:

    Code:
    apachectl fullstatus
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Steve Clarke

    Steve Clarke Registered

    Joined:
    Apr 1, 2016
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Springdale, NL
    cPanel Access Level:
    Reseller Owner
    Ok thanks! I was wondering where the output was coming from. I'm writing a few Slack bot commands so for this one I guess I'll have to ssh out and run that command and parse the output.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice