Would you like to learn how to monitor Bitcoin price using Zabbix? In this tutorial, we are going to show you all the steps required to monitor the Bitcoin price using Zabbix.

• Zabbix version: 4.2.6

We are going to use Zabbix to monitor the JSON output of the API from the Website Coingecko.

You will need a Zabbix server up and running.

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 - Zabbix Monitor Bitcoin Price

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 Hosts option.

zabbix add host

Locate and click on the hostname of your Zabbix server.

In our example, we selected the hostname: Zabbix server.

On the Host properties screen, access the Applications tab.

Zabbix Windows Service Application menu

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

Zabbix Create Application

On the Host applications screen, create a new application named COINGECKO.

Zabbix bitcoin monitor application

After finishing the Application creation, access the Items tab.

Zabbix Item Tab

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: ZABBIX MONITOR BITCOIN
• Type: HTTP AGENT
• Key: zabbix.monitor.bitcoin
URL: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd

Now, you must click on the Parse button.

Zabbix monitor bitcoin price

After clicking on the Parse button, Zabbix will clean the URL and create the required variables.

Zabbix parse url

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

• Request type: GET
• Timeout: 3s
• Request body type: Raw data
• Required status codes: 200
• Follow redirects: Yes
• Retrieve mode: Body
• Convert to JSON: YES
• Type of Information: TEXT
• Update interval: 60s
• Applications: Select COINGECKO
• Enabled: Yes

Here is our configuration:

Zabbix monitor bitcoin
Zabbix monitor bitcoin

Click on the Add button to finish the Item creation and 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: Zabbix server and the application COINGECKO.

Click on the Apply button.

Zabbix bitcoin filter

You should see a result similar to mine.

Zabbix monitor bitcoin test

Congratulations! You have finished the configuration of the first item.

Tutorial - Zabbix Monitor Bitcoin Price in USD

Now, we need to access the Zabbix server's Item tab and create a new item.

Zabbix Item Tab

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: Bitcoin Price
• Type: Dependent Item
• Key: zabbix.monitor.bitcoin.price
• Master item: ZABBIX MONITOR BITCOIN
• Type of Information: Numeric float
• Application: COINGECKO

Here is our configuration:

Zabbix monitor bitcoin price usd

Now, you need to access the Preprocessing tab and click on the Add option.

• Name: JSONPath
• Parameter: $.body.bitcoin.usd

Click on the Add option and then on the Add button.

Here is our configuration.

Zabbix preprocessing bitcoin monitor

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: Zabbix server and the application COINGECKO.

Click on the Apply button.

Zabbix bitcoin filter

The item named Bitcoin price will show the Bitcoin price.

You should see a result similar to mine.

Bitcoin monitor price zabbix

Here you can see the Bitcoin price moving on a Zabbix graphic.

Zabbix monitor bitcoin price graphic

Congratulations! You are now able to monitor the Bitcoin price using Zabbix.