Consulta o status de execução do agente do CloudMonitor chamando a operação DescribeMonitoringAgentStatuses.
Descrição da operação
Este tópico descreve como consultar o status do agente do CloudMonitor instalado na instância i-hp3dunahluwajv6f****. O resultado indica que o agente do CloudMonitor está no estado running.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
cms:DescribeMonitoringAgentStatuses |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| InstanceIds |
string |
Não |
Os IDs das instâncias. Separe vários IDs de instâncias com vírgulas (,). |
i-hp3dunahluwajv6f**** |
| HostAvailabilityTaskId |
string |
Não |
O ID da tarefa de monitoramento de disponibilidade. |
126**** |
Para obter mais informações sobre os parâmetros de solicitação comuns, consulte Parâmetros comuns.
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| Code |
string |
O código de status HTTP. Nota
O código de status 200 indica que a solicitação foi bem-sucedida. |
200 |
| Message |
string |
A mensagem de erro. |
The specified resource is not found. |
| RequestId |
string |
O ID da solicitação. |
6F8371DF-AB81-41B8-9E1B-5493B3FF0E4F |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
| NodeStatusList |
object |
||
| NodeStatus |
array<object> |
As informações de status do host. |
|
|
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 Valores válidos:
|
running |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.