All Products
Search
Document Center

CloudMonitor:DescribeMonitoringAgentStatuses

Last Updated:Mar 01, 2024

Queries the status of the CloudMonitor agent.

Operation description

This topic describes how to query the status of the CloudMonitor agent that is installed on the i-hp3dunahluwajv6f**** instance. The result indicates that the CloudMonitor agent is in the running state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdsstringYes

The instance IDs. Separate multiple instance IDs with commas (,).

i-hp3dunahluwajv6f****
HostAvailabilityTaskIdstringNo

The ID of the availability monitoring task.

126****

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Codestring

The HTTP status code.

Note The status code 200 indicates that the request was successful.
200
Messagestring

The error message.

The specified resource is not found.
RequestIdstring

The request ID.

6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
NodeStatusListobject []

The status information.

Statusstring

The status of the CloudMonitor agent. Valid values:

  • running: The CloudMonitor agent is running.
  • stopped: The CloudMonitor agent is stopped.
  • installing: The CloudMonitor agent is being installed.
  • install_faild: The CloudMonitor agent fails to be installed.
  • abnormal: The CloudMonitor agent is not properly installed.
  • not_installed: The CloudMonitor agent is not installed.
running
InstanceIdstring

The instance ID.

i-hp3dunahluwajv6f****
AutoInstallboolean

Indicates whether the CloudMonitor agent is automatically installed. Valid values:

  • true: The CloudMonitor agent is automatically installed.
  • false: The CloudMonitor agent is not automatically installed.
true
OsMonitorStatusstring

The status of SysOM. Valid values:

  • installing: SysOM is being installed.
  • running: SysOM is running.
  • stopped: SysOM is stopped.
  • uninstalling: SysOM is being uninstalled.
running
OsMonitorErrorCodestring

The error status of SysOM. Valid values:

  • install_fail: SysOM fails to be installed or an unknown error occurs.
  • install_assist_invalid: SysOM fails to be installed because the status of Cloud Assistant is invalid.
  • install_assist_command_fail: SysOM fails to be installed because the installation command fails to run.
  • uninstall_fail: SysOM fails to be uninstalled or an unknown error occurs.
  • uninstall_assist_invalid: SysOM fails to be uninstalled because the status of Cloud Assistant is invalid.
  • uninstall_assist_command_fail: SysOM fails to be uninstalled because the uninstallation command fails to run.
install_fail
OsMonitorErrorDetailstring

The details of the execution error. Valid values:

  • Command.ErrorCode.Fail.Downlaod.REGIN_ID: Failed to obtain the region ID.
  • Command.ErrorCode.Fail.Downlaod.SYSAK: Failed to download the .rpm package of System Analyse Kit (SysAK).
  • Command.ErrorCode.Fail.Downlaod.CMON_FILE: Failed to download the CMON file.
  • Command.ErrorCode.Fail.Downlaod.BTF: Failed to start SysAK because the BTF file is not found.
  • Command.ErrorCode.Fail.Start.SYSAK: Failed to start SysAK due to an unknown error.
Command.ErrorCode.Fail.Downlaod.REGIN_ID

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "The specified resource is not found.",
  "RequestId": "6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F",
  "Success": true,
  "NodeStatusList": {
    "NodeStatus": [
      {
        "Status": "running",
        "InstanceId": "i-hp3dunahluwajv6f****",
        "AutoInstall": true,
        "OsMonitorStatus": "running",
        "OsMonitorErrorCode": "install_fail",
        "OsMonitorErrorDetail": "Command.ErrorCode.Fail.Downlaod.REGIN_ID",
        "OsMonitorVersion": "1.3.0-12",
        "OsMonitorConfig": "{\"sysak\":true}"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400ParameterInvalidIllegal parameters.-
403AccessForbiddenUser not authorized to operate on the specified resource.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
500InternalError%s-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-24The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2023-07-19The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2023-05-04The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.