Would you like to learn how to use the Zabbix Ping monitor feature? In this tutorial, we are going to show you how to configure Zabbix to monitor a Host using ICMP packages.

• Zabbix version: 3.4.12
• Ubuntu Linux version: 18

Hardware List:

The following section presents the list of equipment used to create this Zabbix tutorial.

Every piece of hardware listed above can be found at Amazon website.

Zabbix Playlist:

On this page, we offer quick access to a list of videos related to Zabbix installation.

Don't forget to subscribe to our youtube channel named FKIT.

Tutorial - Enable Zabbix ICMP Ping Monitoring

First, we need to install the FPING package to enable Zabbix to perform ICMP checks.

We also need to take note of the FPING program location.

Use the WHICH command to find out the FPING program location.

# apt-get update
# apt-get install fping
# which fping

/usr/bin/fping

In our example, the FPING program was found inside the directory: /usr/bin

Next, we need to edit the Zabbix server configuration file and enable the ICMP monitor feature.

On the Linux console, use the following commands to find the location of the zabbix_server.conf file.

In our example the zabbix_server.conf file was located under /usr/local/etc.

After finding, you need to edit the zabbix_server.conf file.

# updatedb
# locate zabbix_server.conf
# vi /usr/local/etc/zabbix_server.conf

Here is the original file, before our configuration.

LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=kamisama321
Timeout=4
LogSlowQueries=3000

Add StartPingers=10 at the end of the configuration file.

Add FpingLocation=/usr/bin/fping at the end of the configuration file.

Here is the new file with our configuration.

LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=kamisama321
Timeout=4
LogSlowQueries=3000
StartPingers=10
FpingLocation=/usr/bin/fping

The Zabbix server was configured to start automatically 10 processes to collect ICMP PING information.

The Zabbix server was told that /usr/sbin/fping is the correct path to the FPING command.

Now, you need to restart the Zabbix service.

If you used our installation guide, you can restart Zabbix using the following command:

# /etc/init.d/zabbix-server restart

If the Zabbix server was started successfully, you should see a message similar to this on the log file:

15527:20180807:144646.407 server #33 started [icmp pinger #1]

15529:20180807:144646.407 server #34 started [icmp pinger #2]

15532:20180807:144646.408 server #35 started [icmp pinger #3]

15535:20180807:144646.408 server #37 started [icmp pinger #5]

15537:20180807:144646.409 server #39 started [icmp pinger #7]

15534:20180807:144646.410 server #36 started [icmp pinger #4]

15536:20180807:144646.411 server #38 started [icmp pinger #6]

15538:20180807:144646.411 server #40 started [icmp pinger #8]

15541:20180807:144646.412 server #41 started [icmp pinger #9]

15543:20180807:144646.412 server #42 started [icmp pinger #10]

In our example, the Zabbix server log file zabbix_server.log is located inside the /tmp directory.

In our example, the Zabbix server started  10 ICMP PING data collector processes automatically.

Congratulations! you have enabled the feature required to monitor ICMP PING on Zabbix.

You can now use the Zabbix server dashboard to monitor ICMP PING.

Tutorial - Zabbix Monitor ICMP Ping

Now, we need to access the Zabbix server dashboard and add the Linux computer as a Host.

Open your browser and enter the IP address of your web server plus /zabbix.

In our example, the following URL was entered in the Browser:

• http://35.162.85.57/zabbix

On the login screen, use the default username and default password.

• Default Username: Admin
• Default Password: zabbix

zabbix login

After a successful login, you will be sent to the Zabbix Dashboard.

zabbix dashboard

On the dashboard screen, access the Configuration menu and select the Host option.

zabbix add host

On the top right of the screen, click on the Create host button.

Zabbix Create Host

On the Host configuration screen, you will have to enter the following information:

• Host Name - Enter a Hostname to monitor.
• Visible Hostname - Repeat the hostname.
• New group - Enter a name to identify a group of similar devices.
• Agent Interface - Enter the IP address of the Hostname.

Here is the original image, before our configuration.

zabbix linux - Antes

Here is the new image with our configuration.

Zabbix Host ICMP PING

Click on the Add button to include this host on the Zabbix database.

On the dashboard screen, access the Configuration menu and select the Host option.

zabbix add host

Locate and click on the hostname that you created before.

In our example, we selected the hostname: GOOGLE

On the Host properties screen, access the Applications tab.

Zabbix ICMP Application menu

On the top right part of the screen, click on the Create application button.

Zabbix ICMP Create Application

On the Host applications screen, create a new application named TEST-ICMP.

Zabbix ICMP Application

After finishing the Application creation, access the Items tab.

Zabbix ICMP Item

On the top right part of the screen, click on the Create item button.

On the Item creation screen, you need to configure the following items:

• Name: Enter an identification to the ICMP monitoring item.
• Type: Simple check
• Type of Information: Numeric (Unsigned)
• Update interval: 60 Seconds
• Show value: Service State
• Application: TEST-ICMP

Zabbix ICMPPing Simple check

Click on the Add button and finish the Item creation.

Wait 5 minutes.

In order to test your configuration, access the Monitoring menu and click on the Latest data option.

Zabbix Latest data

Use the filter configuration to select the desired hostname.

In our example, we selected the hostname GOOGLE

Click on the Apply button.

Zabbix ICMP Filter

You should be able to see the results of your ICMP PING monitoring using Zabbix.

Zabbix ICMP Monitor

Congratulations! You have configured the Zabbix server to monitor a host using ICMP PING.

It is important to say that Zabbix comes with a very complete ICMP PING monitor template.

If you decide to use the ICMP template you don't have to do everything manually, as we did.

To use the Zabbix ICMP template, after adding a new host.

Access the Templates tab and associate the template named: Template module ICMP Ping

Zabbix ICMP template

This video will show you how to monitor a host using the ICMP template.