---
title: Sphere Agent - Legado
slug: knowledge-base-internal/sphere-agent-legado
description: Learn how to troubleshoot host metric failures with the agent in this comprehensive document. Follow step-by-step instructions to check the agent's status, review log files, restart the agent, and run it in debug mode. Wait for 2-5 minutes after restartin
createdAt: 2021-12-02T19:57:57.000Z
---

# Falha nas métricas do host com agent:

### 1 - Verificar o status do agent na máquina

```shell

# Linux: Verificar o status
service sphere-agent status -l

```

### 2 - Verificar últimas linhas do arquivo de log&#x20;

**Linux:**
&#x20;`/opt/sphere-agent-linux/sphere-agent.log`

**Windows: &#x20;**&#xA;`C:\ProgramData\65A\sphere-agent\sphere-agent.log`

### 3 - Reiniciar o agent para tentar solucionar&#x20;

```shell

# Linux: Verificar o status
service sphere-agent restart

```

### 4 - Executar o agent em modo de debug

```shell

# Linux: Para o serviço caso esteja executando
service sphere-agent stop

# Rodar o agent em debug
/opt/sphere-agent-linux/sphere-agent -sdbg


```

Após *reiniciar* ou *executar em debug,* deve-ser **aguardar** **2-5 minutos** para verificar se as métricas na infraestrutura, seleciona a **Última hora** para visualizar corretamente

:::hint{type="warning"}
Caso as atividades não sejam suficientes abrir um atendimento no Asana.
:::

