Skip to main content

๐Ÿ“ถ Ping (ICMP) Monitor

The Ping monitor sends ICMP echo requests ("pings") to a host and measures whether it's reachable and how quickly it responds.


๐ŸŽฏ What It Doesโ€‹

  • Sends ICMP echo requests to a hostname or IP address
  • Measures average latency (round-trip time)
  • Detects packet loss
  • Works on both Linux and Windows servers

โš™๏ธ Configurationโ€‹

SettingDescriptionExample
NameA friendly nameProduction Server
Host / IP AddressHostname or IP to ping192.168.1.100 or server.example.com
Check IntervalHow often to ping1 minute
TimeoutMax time to wait for response10 seconds

๐Ÿ“– Usage Examplesโ€‹

Example 1: Monitor a Serverโ€‹

SettingValue
NameWeb Server 1
Address10.0.0.5
Interval30 seconds

Example 2: Monitor an External Hostโ€‹

SettingValue
NameCDN Edge Node
Addresscdn.example.com
Interval1 minute

๐Ÿ“Š What Gets Recordedโ€‹

MetricDescription
StatusUp or Down
Response TimeAverage round-trip time in ms
Packet LossPercentage of lost packets
Error MessageDetails if unreachable

โš ๏ธ Important Notesโ€‹

warning

Some hosting providers block ICMP! If ping monitors always show "down" but you can access the host via HTTP, your hosting provider likely blocks outbound ICMP. Use a TCP monitor instead.

info

Ping on Linux requires privileges. Make sure the PHP process has permission to run ping. On most systems this works out of the box, but some hardened setups may need:

sudo setcap cap_net_raw+ep $(which ping)

๐Ÿ’ก Tipsโ€‹

  • Ping only checks network reachability, not whether your application is working. Use HTTP monitors for application health.
  • High ping latency might indicate network congestion or geographical distance.
  • Combine Ping with HTTP monitors for a complete picture: Ping tells you if the server is reachable, HTTP tells you if the application is working.