A ping monitor pings a host (an ICMP echo request) from each region you choose and waits for the reply. If the host answers within the timeout, the check passes and LivePulser records how long the reply took. If no reply arrives, the check fails.
How the check works
- LivePulser first looks up the host name in DNS. If the lookup fails, or the name points only to a private address, the check fails with The name doesn't resolve to a public address. and no ping is sent.
- Each check sends one echo request and waits up to the Timeout for the reply. The Server response shows the command used. LivePulser looks up the name first and pings the IP address it finds, so the command shows that address, for example
ping -c 1 -W 30 93.184.216.34. - The check passes when the reply arrives. It fails when no reply arrives (All packets lost) or when a router answers that the host can't be reached (Destination host unreachable).
- The response time is the round-trip time of the reply, in milliseconds.
Because each check is a single packet, one lost packet fails that check. Retries decides how many failed checks in a row open an incident. Checks run over IPv4: IPv6 addresses can't be monitored yet, and a host name needs an IPv4 (A) record. A name with both IPv4 and IPv6 records works and is checked over IPv4.
What a ping tells you, and what it doesn't
A successful ping means the host is switched on, connected, and reachable over the network from that region. It's a good fit for routers, firewalls, VPN endpoints, physical servers and other devices that don't run a web service.
It says nothing about the software on the host. A server can answer ping while its web server has crashed or its disk is full. Pair a ping monitor with an HTTP monitor or a TCP port monitor for the service itself, and a resource monitor for the machine's health.
Before you begin
- A public host name or IPv4 address. Loopback (127.x, ::1), private (10.x, 172.16.x–172.31.x, 192.168.x), link-local (169.254.x, fe80::) and unique-local IPv6 (fc00::/7) addresses are rejected, and so are cloud metadata names and host names that end in .local, .internal, .localhost, .localdomain or .home.arpa. A host name without a dot, such as redis or db, is refused too. IP addresses still work.
- A host that answers ping from the internet. Many cloud providers and firewalls block ICMP by default: AWS security groups, Azure network security groups and Windows Defender Firewall all drop it unless you allow it.
Test from a machine outside your network first:
ping -c 4 example.comping example.comIf that gets no replies, a LivePulser ping monitor will report the host as down too. Either allow inbound ICMP echo requests on the host and any firewall in front of it, or use a port monitor instead. You can also click Test in the wizard to ping the host once from a LivePulser probe.
Create a ping monitor
- Click New monitor and choose Ping.
- Enter a Name and the Hostname: a host name such as router.example.com or an IP address. Don't include
https://, a port or a path. - Optionally, click Test to run one ping now from a probe. It shows Up or Down, where it ran from and the reply time. Nothing is saved. See Test before you create. Click Continue.
- On the Settings step, choose the Check frequency and Monitoring regions. Under Advanced settings, adjust Timeout and Retries if needed. Click Continue.
- Choose where alerts go on the Alerts step, then click Create monitor on the Review step.
Check that it works
On the Monitor created screen, click View monitor. After the first checks, Health Status should read Healthy and the Response time analysis chart shows reply times per region. If it goes Down straight away, ICMP is almost always being blocked; see the troubleshooting table below.
Example: an office router
Your office router has the public address 203.0.113.10 and you want to know when the office loses its internet connection. Allow ICMP echo requests on the router's WAN interface, then create a ping monitor with Hostname 203.0.113.10, Check frequency 1 minute (on a paid plan; Free checks every 5 minutes at most) and one region close to the office, such as Frankfurt, Germany. Keep Retries at 3, so an incident opens only after three failed checks in a row, about 2 minutes after the first one.
Settings
| Setting | Meaning | Default and limits |
|---|---|---|
| Hostname | The host name or IP address to ping. | Required. Up to 253 characters: letters, numbers, hyphens and dots, or an IPv4 address. A host name needs at least one dot. |
| Check frequency | How often each region pings the host. | 5 minutes. Up to 24 hours. The fastest is 5 minutes on Free, 1 minute on Starter and Team, 30 seconds on Pro. |
| Monitoring regions | Where the pings come from. Each region checks independently. | Virginia, Frankfurt and Singapore. At least one. Up to 3 on Free, all 7 on paid plans. |
| Timeout | How long to wait for the reply, in whole seconds. | 30 seconds. 5 to 30 seconds on Free, 5 to 60 seconds on paid plans. |
| Retries | How many failed checks in a row open an incident. 0 and 1 both open one on the first failure. | 3. From 0 to 5. |
Change the hostname later with Host in the monitor's actions sidebar, regions with Monitoring locations, and frequency, timeout and retries with Check settings. Check settings also has an Immediate retry switch ("Retry immediately upon failure", paid plans only) that the wizard doesn't show for ping monitors. With it on, the remaining retries run 2 seconds apart straight after the first failed check, each waiting at most 5 seconds for a reply. See the Settings reference.
Results and alerts
The monitor page has the same layout as an HTTP monitor: Health Status, Latest check, Uptime overview and a response-time chart per region. See Understand your first results.
When pings fail, LivePulser opens an incident listing the failing regions and notifies the monitor's destinations once. If only some regions fail, the monitor is Degraded; if all fail, it's Down. The incident resolves, and a recovery alert is sent, when every region gets replies again.
Troubleshooting
| Problem | Likely cause | What to do |
|---|---|---|
| Down from the moment it was created | ICMP is blocked by the host, a cloud security group or a firewall. | Allow inbound ICMP echo requests, or monitor a TCP port instead. Click Test in the wizard to check again from a probe without creating a monitor. |
| Hostname rejected with "private network addresses are not allowed for security reasons" | It's a private or link-local IP address. | Use the host's public address. |
| Hostname rejected with "localhost and loopback addresses are not allowed for security reasons" | It's localhost, 127.x, ::1 or 0.0.0.0. | Use the host's public address. |
| Hostname rejected with "internal or metadata service addresses are not allowed for security reasons" | It's a cloud metadata name, or the name ends in .local, .internal, .localdomain or .home.arpa. | Use the public IP address or another public name for the host. |
| Hostname rejected with "invalid hostname format" | It includes a scheme, port, path, underscore or trailing dot. | Enter only the host name, for example router.example.com. |
| Hostname rejected with "use a full domain name, like example.com" | The name has no dot, such as redis or db. | Enter the full public domain name, or the IP address. |
| Up, but users report the site is down | Ping only proves the host is reachable. | Add an HTTP or port monitor for the service. |
| Occasional single failures | Each check is one packet, and some networks rate-limit or drop ICMP. | Keep Retries at 3. |
| Hostname rejected with "IPv6 addresses aren't supported yet" | It's an IPv6 address. Checks run over IPv4 for now. | Use the host's IPv4 address, or a host name with an IPv4 (A) record. |
| Server response says the target has only an IPv6 address | The host name has only IPv6 (AAAA) records. | Add an A record for the host, or enter its IPv4 address. |
| Server response says the name doesn't resolve to a public address | The host name has no DNS record, it was mistyped, or it points only to a private address. | Check the name with a DNS lookup, or enter the public IP address. |
| Server response says Destination host unreachable | A router on the way reports it has no route to the host. | Check that the host is online and that the address is right. |