The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

servicestatus Error

Discussion in 'cPanel Developers' started by crshman, Oct 2, 2009.

  1. crshman

    crshman Member

    Joined:
    Jul 9, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I'm trying to get the status of the services on one of my cpanel servers but I keep getting the following error:
    Code:
    XML Parsing Error: no element found
    Location: http://<server>:2086/xml-api/servicestatus?
    Line Number 3, Column 1:
    I'm using the following url call:

    Code:
    http://<server>:2086/xml-api/servicestatus?
    Some server information:

    cPanel 11.24.5-R38506
    WHM 11.24.2
    X 3.9

    Any help with this would be appreciated. Also, if any other information is required I'd be happy to provide it.
     
  2. bvierra

    bvierra Well-Known Member

    Joined:
    Jul 28, 2006
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Southern California
    I believe this is only available in 11.25+ which is currently only in edge.

    The response is like the following:
    <service>
    <name>mysql</name>
    <display_name>MySQL Server</display_name>
    <enabled>1</enabled>
    <installed>1</installed>
    <monitored>1</monitored>
    </service>

    doesn't say if it is currently in the up or down state (if that is what you were looking for).
     
  3. crshman

    crshman Member

    Joined:
    Jul 9, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the response!

    I figured it was only available in 11.25, the reason I questioned it was because there are some api calls that list they are only in 11.25. I assumed that all of the api calls that are only available in 11.25 were marked as such.
     
  4. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Doh!

    That should be taken care of shortly, thanks for letting us know!
     
  5. MelanieSeibert

    Joined:
    Jul 23, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    This information has been updated in the documentation. Thanks for letting us know and sorry for the confusion.

    XML and JSON APIs
     
Loading...

Share This Page