# Ping monitoring for servers

Use a ping (ICMP) monitor to check that a server, router or other network device is reachable, and learn when a port or HTTP(s) monitor fits better.

A ping monitor checks that a server or network device is reachable. It sends an ICMP echo request, the basic "are you there?" message that the `ping` command uses, and checks that the host answers. Use it for servers, routers, load balancers and VPN gateways. It does not tell you whether a website or other service on that machine works.

**Before you start**

- You need the **Owner**, **Admin** or **Editor** role in the workspace.
- The host must answer ping from the public internet. Many cloud providers and firewalls block ping by default. To check, run `ping` followed by the hostname from a computer outside your network. A host that does not answer ping always reports down.

## Add a ping monitor

1. Open **Monitors** in the sidebar and select **New monitor**.

2. Choose the **Ping** tab.

3. In **Host**, enter a hostname (a server's name, such as `edge.example.com`) or an IP address (its numeric address, such as `203.0.113.10`). Enter the host only, without `https://` or a path.

4. In **Name**, enter what your team calls the machine, for example "Edge router, Frankfurt".

5. Open **Advanced settings** if you want to change **Check every** and **Locations**. See [Create a monitor](/docs/monitors/create/#frequency-and-locations).

6. Under **Test first**, select **Run test** to confirm the host answers from a location.

7. Select **Create monitor**.

8. Open the monitor's **Notifications** tab and choose who gets alerted. A new monitor alerts nobody until you do.

9. Select **Save changes**.

[Set up alerts for the monitor](/docs/monitors/create/#set-up-alerts-for-the-monitor) covers each alert setting.

The monitor shows **Pending** until its first check reports, then **Up** if the host answers. **Host** takes up to 253 characters.

## How a ping check works

Each check sends ICMP echo requests from one of the monitor's locations, taking turns through the locations you selected. The check passes if the host replies. The response time is the average round-trip time of the replies: how long a message takes to reach the host and come back.

A ping monitor has no other settings, and you can't change the packet count. As for every monitor type, StatusCheck re-checks a failure from another location before it marks the monitor **Down**. See [Locations and confirmation](/docs/monitors/regions/).

## When to use a port or HTTP(s) monitor instead

A host can answer pings while the service on it is down, and it can drop pings while the service works. Choose the monitor that tests what your users depend on:

| If you need to know | Use |
| --- | --- |
| The machine or device is reachable on the network | **Ping** |
| A service is accepting connections on a port, such as a database or mail server | [Port](/docs/monitors/port/) |
| A website or API answers correctly | [HTTP(s)](/docs/monitors/http/) |

A common setup is a ping monitor on the host and an HTTP(s) or port monitor on the service. When both go down, the machine or its network is the problem. When only the service monitor goes down, look at the application.

## Troubleshooting

**The monitor always shows down, but the server is fine.** The host, its firewall or your cloud provider's security rules block ping. In your cloud provider or firewall, look for inbound rules (sometimes called a security group) and allow ICMP. If you cannot change them, use a [port monitor](/docs/monitors/port/) on a port the server has open.

**Some checks fail from one location only.** A network path between that location and your host may be failing. StatusCheck marks a monitor down only when a second location confirms the failure, so one location's problem does not alert you. Open the **Logs** tab and filter by **Failed** to see which locations fail.

## Related

- [Port monitors](/docs/monitors/port/) check a specific service on the host.
- [Locations and confirmation](/docs/monitors/regions/) explains rotation and confirmation.
- [Read a monitor's uptime and response times](/docs/monitors/results/) shows response time by location.
- [DNS monitors](/docs/monitors/dns/) check that a hostname resolves to the address you expect.
