nping

The nping command is included in the nmap package. Originally developed in a google summer of code in 2009, it can be used similarly to hping which unfortunately has not been actively developed in almost a decade (though still a useful tool). Similarly to how ping is used to check if a server is responding to ICMP echo packets, nping can be used to craft custom packets to continually test TCP, UDP, ICMP, and ARP/RARP responses from a server. 

Installation

The nping utility is part of the nmap RPM which is available in the base repository. So just install nmap, and nping will be available for you.

yum -y install nmap

Ping an HTTP Server

Send a ping to a web server listening on TCP port 80, giving a 2-second time to live on each packet.

nping -p 80 --flags rst --ttl 2 centoshowtos.org
(Comments)

Comments