How to monitor a UDP service (game servers, NTP, VoIP) in Spot Downtime

A step-by-step guide to UDP monitoring: choose what to send, what the reply must contain, when to use hex, and how to read the result.

· 4 min read · By the Spot Downtime team

UDP has no handshake, so you can't tell an open port from a dead one by connecting. A UDP monitor sends a request your service answers and counts it as up only when the right reply comes back. (For why, see how to tell an open UDP port from a dead one.)

Over UDP only a reply proves the service is alive. A closed port fails fast; silence waits for the timeout.
UDP monitors are on every plan, including Free.

Step 1: create the monitor

  1. Open Monitors, click Add monitor and choose UDP port.
  2. In Host and port, enter the address, such as game.example.com:27015.
  3. In Send, enter the request your service answers (examples below).
  4. Optionally fill in Reply must contain. The match is exact and case-sensitive, anywhere in the reply.
  5. Tick Values are hex bytes for binary protocols.
  6. Pick how often to Check every, then click Add monitor.
A UDP monitor for an NTP server.

Step 2: pick what to send

ServiceSendHex?Reply must contain
NTP (port 123)1b + 47 zero bytes (94 zeros)YesLeave empty: any reply means it answers
Source game serversff ff ff ff 54 + "Source Engine Query" + 00Yesffffffff
Your own serviceIts ping or status messageAs neededText from its normal reply

In hex, write two digits per byte. Spaces, colons and a leading 0x are ignored, so 0x1B:00:00 works. Requests and replies can be up to 1,024 bytes each.

Step 3: read the result

ResultMeans
UpA reply came within 10 seconds and contained your text. The round trip goes on the response-time chart.
Port closed (ICMP port unreachable)The host is up but nothing is listening. Restart the service.
No reply within 10sPackets are being dropped, or the service is hung or ignoring the request.
Reply doesn't contain …Something answered, but not what you expected. The alert shows the start of the reply.

Tips

  • Check near your players. On Starter and Pro, use Check from to pick Amsterdam, Singapore or several regions.
  • Got a real protocol? Use its check. For a DNS server, a DNS monitor checks that real records come back, which says more than a raw reply.
  • Test the alert with Send test under Alerts before you rely on it.

More in this series

Get new guides by email

Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.

Unsubscribe from any email with one click. See our privacy policy.

Keep reading