Queries the status of the CloudMonitor agent.
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
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeMonitoringAgentStatuses | The operation that you want to perform. Set the value to DescribeMonitoringAgentStatuses. |
InstanceIds | String | Yes | i-hp3dunahluwajv6f**** | The instance ID. Separate multiple instance IDs with commas (,). |
HostAvailabilityTaskId | String | No | 126**** | The ID of the availability monitoring task. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 | The status code. Note The status code 200 indicates that the request was successful. |
Message | String | The specified resource is not found. | The error message. |
RequestId | String | 6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F | The request ID. |
Success | Boolean | true | Indicates whether the request was successful. Valid values:
|
NodeStatusList | Array of NodeStatus | The host status information. | |
NodeStatus | |||
Status | String | running | The status of the CloudMonitor agent. Valid values:
|
InstanceId | String | i-hp3dunahluwajv6f**** | The instance ID. |
AutoInstall | Boolean | true | Indicates whether the CloudMonitor agent is automatically installed. Valid values:
|
OsMonitorStatus | String | running | The status of SysOM. Valid values:
|
OsMonitorErrorCode | String | install_fail | The error status of SysOM. Valid values:
|
OsMonitorErrorDetail | String | Command.ErrorCode.Fail.Downlaod.REGIN_ID | The details of the execution error. Valid values:
|
OsMonitorVersion | String | 1.3.0-12 | The SysOM version. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeMonitoringAgentStatuses
&InstanceIds=i-hp3dunahluwajv6f****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeMonitoringAgentStatusesResponse>
<RequestId>6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F</RequestId>
<NodeStatusList>
<NodeStatus>
<Status>running</Status>
<AutoInstall>true</AutoInstall>
<InstanceId>i-hp3dunahluwajv6f****</InstanceId>
</NodeStatus>
</NodeStatusList>
<Code>200</Code>
<Success>true</Success>
</DescribeMonitoringAgentStatusesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F",
"NodeStatusList" : {
"NodeStatus" : [ {
"Status" : "running",
"AutoInstall" : true,
"InstanceId" : "i-hp3dunahluwajv6f****"
} ]
},
"Code" : 200,
"Success" : true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | ResourceNotFound | The specified resource is not found. | The error message returned because the specified resource is not found. |
For a list of error codes, see Service error codes.