Skip to main content

Description

The ping probe checks host reachability using ICMP echo (unprivileged datagram socket). If ICMP is unavailable (missing CAP_NET_RAW or net.ipv4.ping_group_range doesn’t cover the agent’s user), it automatically falls back to TCP connect.

Config fields

Metrics

Example config

Notes

  • ICMP unavailability is detected once at construction, not re-probed every run.
  • When ICMP is blocked, the probe emits vms.agent.permission_missing{capability=CAP_NET_RAW} every run so the gap is visible on dashboards.
  • To enable native ICMP on Linux: grant CAP_NET_RAW to the binary or expand net.ipv4.ping_group_range.