Mengkueri status berjalan Agen CloudMonitor dengan memanggil operasi DescribeMonitoringAgentStatuses.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeMonitoringAgentStatuses |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceIds |
string |
No |
ID instans. Pisahkan beberapa ID instans dengan koma (,). |
i-hp3dunahluwajv6f**** |
| HostAvailabilityTaskId |
string |
No |
ID tugas pemantauan ketersediaan. |
126**** |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code. Catatan
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The error message. |
The specified resource is not found. |
| RequestId |
string |
The request ID. |
6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| NodeStatusList |
object |
||
| NodeStatus |
array<object> |
The host status information. |
|
|
object |
|||
| Status |
string |
The status of the CloudMonitor agent. Valid values:
|
running |
| InstanceId |
string |
The instance ID. |
i-hp3dunahluwajv6f**** |
| AutoInstall |
boolean |
Indicates whether the CloudMonitor agent is automatically installed. Valid values:
|
true |
| OsMonitorStatus |
string |
The status of SysOM. Valid values:
|
running |
| OsMonitorErrorCode |
string |
The error status of SysOM. Valid values:
|
install_fail |
| OsMonitorErrorDetail |
string |
The details of the execution error. Valid values:
|
Command.ErrorCode.Fail.Downlaod.REGIN_ID |
| OsMonitorVersion |
string |
The SysOM version. |
1.3.0-12 |
| OsMonitorConfig |
string |
Indicates whether the SysAK monitoring feature is enabled.`` Valid values:
|
{"sysak":true} |
| AgentInstallErrorCode |
string |
The error code returned when the CloudMonitor agent is installed. Valid values:
|
Assist.Invalid |
| LoongCollectorVersion |
string |
LoongCollector Version |
0.1.0 |
| LoongCollectorStatus |
string |
LoongCollector Status Valid values:
|
running |
Contoh
Respons sukses
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}",
"AgentInstallErrorCode": "Assist.Invalid",
"LoongCollectorVersion": "0.1.0",
"LoongCollectorStatus": "running"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | %s | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.