In this tutorial, we will show you how to install and configuration of Fping on your CentOS 6 server. For those of you who didn’t know, Fping is a program like ping which uses the Internet Control Message Protocol ( ICMP ) echo request to determine if a target host is responding. fping differs from ping in that you can specify any number of targets on the command line, or specify a file containing the lists of targets to ping.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo
‘ to the commands to get root privileges. I will show you the step-by-step installation of Fping on a CentOS 6 system.
Prerequisites
- A server running one of the following operating systems: CentOS or RHEL-based.
- It’s recommended that you use a fresh OS install to prevent any potential issues.
- You will need access to the terminal to execute commands.
- A network connection or internet access to download the Fping package.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Fping on CentOS 6
Step 1. First, you need to enable the repository on your system.
## RHEL/CentOS 6 64-Bit ## # wget http://pkgs.repoforge.org/fping/fping-3.9-1.el6.rf.x86_64.rpm # rpm -ivh fping-3.9-1.el6.rf.x86_64.rpm ## RHEL/CentOS 6 32-Bit ## # wget http://pkgs.repoforge.org/fping/fping-3.9-1.el6.rf.i686.rpm # rpm -ivh fping-3.9-1.el6.rf.i686.rpm
Step 2. Install Fping on the CentOS system.
- Install Fping using the default CentOS repository:
Run the following commands below to install Fping using the YUM command:
yum install fping
- Installing Fping from source code:
First, download fping source package (the latest version is 3.10) and install it.
wget https://fping.org/dist/fping-5.1.tar.gz tar -xvf fping-5.1.tar.gz cd fping-5.1 ./configure make make install
Example usage fping program:
#fping 8.8.8.8 8.8.4.4 74.125.200.113 8.8.4.4 is alive 8.8.8.8 is alive 74.125.200.113 is alive
Congratulations! You have successfully installed Fping. Thanks for using this tutorial for installing the Fping on your Ubuntu 20.04 LTS Focal Fossa system. For additional help or useful information, we recommend you to check the official Fping website.