ping
Ping a target host from the Netmon server. Wraps POST /api/getPingInfo/{target} (permission: tools).
The probe runs ON the netmon server, not on the mcpmond host — so reachability reflects what netmon can see, which is what matters for monitoring questions.
Returns {address, latency (avg ms), status (true=reachable), hostname (PTR lookup; falls back to the bare address when the host has no reverse record)}.
A host that does not answer is a normal result, not an error: status is false, latency is null, and two extra fields appear — reason (packet_loss = probes sent, nothing came back; unreachable = the network answered with an ICMP unreachable; unresolved = the name does not resolve) and detail (the ping line that decided it). A down host still gets its hostname resolved. status null means the probe itself failed and reachability is UNKNOWN — never read that as down.
Server fixes count at 4 packets; for longer-running tests use the system tools UI.
Example: ping({target: "8.8.8.8"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | IP address or hostname to ping. |