4 ms·
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 sandbo
by packetslave 4y ago
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.
- teh_klev 4y ago> 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.
- dgl 4y agoThe 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. [1]: https://man7.org/linux/man-pages/man7/ip.7.html https://man7.org/linux/man-pages/man7/ip.7.html
- oasisbob 4y agoRegardless of what layer ICMP works at, its traffic is still transmitted using datagrams, and the call to do so is socket(), yes? Are you just trying to point out the misnomer?