Re:Monitoring tiny web services
by packetslave on Saturday July 09, 2022 @11:33PM
(#32041600)
I wish New Relic would support plain old ICMP ping. That would be nice. You used to be able to implement it using their Scripted API thing (which is just sandboxed Node), but at some point they broke raw socket support, which broke every ping NPM in existence. I think you can still make it work if you run a private minion, but that's more effort than I want to spend.
[ Parent
| on HN ]
> but at some point they broke raw socket support
Sockets are a transport layer feature e.g. TCP or UDP. ICMP works at the network layer and has no notion of sockets.
The BSD socket API on many systems implements a raw socket type[1], so you can use the socket APIs to talk raw IP.
Some systems (Linux, Darwin) also implement a special icmp socket type which can allow unprivileged ping.