Would you like to learn how to use Zabbix to monitor a Windows file size? In this tutorial, we are going to show you how to configure Zabbix to monitor the size of a file on a computer running Windows.

• Zabbix version: 4.2.6
• Windows version: 2012 R2

The computer running Windows must have the Zabbix agent installed.

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

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 Windows File Size

Now, we need to access the Zabbix server dashboard and add the Windows 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 Windows host

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: WINDOWS-SERVER-01

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 Windows Service Application

On the Host applications screen, create a new application named: File size.

Zabbix monitor file size 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: Enter an identification to the Windows file.
• Type: Zabbix Agent
• Key: vfs.file.size[C:\Windows\System32\calc.exe]

• Type of Information: Numeric (float)
• Update interval: 60 Seconds
• Units: b
• Show value: As is
• Application: Directory Size

Zabbix monitor file size windows

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 WINDOWS-SERVER-01

Click on the Apply button.

Zabbix Windows service Filter

You should be able to see the results of your Windows file  monitoring using Zabbix.

Zabbix monitoring file size

In our example, the Zabbix server detected that the Calc.exe file has a size of: 933,89 Kb

Congratulations! You have configured the Zabbix file size monitoring feature on Windows.