# ICMP

> The ICMP check - whether a host answers ping, and what a node needs to send it.

An ICMP check sends one echo request (ping) to a host and passes when the reply arrives within the check's timeout. The run records the round-trip time.

```json
{ "type": "icmp", "host": "203.0.113.10" }
```

| Field  | Type   | Default  | Rules                          |
| ------ | ------ | -------- | ------------------------------ |
| `host` | string | required | An IP address or a domain name |

A failed run ends with `timeout` (no echo reply) or `icmp.failed`.

Sending ICMP needs a permission on the node: unprivileged ping (`net.ipv4.ping_group_range`) or `CAP_NET_RAW`. The [installer](https://docs.monitorly.cloud/nodes/install.md) gives a private node `CAP_NET_RAW`. A node without either ends the run without an outcome (`icmp.not_permitted`): it is not a vote and never DOWN.

Many networks drop ICMP. If a host does not answer ping on purpose, check one of its ports with [TCP](https://docs.monitorly.cloud/checks/tcp.md) instead.
