Would you like to learn how to use Zabbix WMI monitoring feature on Windows? In this tutorial, we are going to show you how to configure Zabbix to monitor WMI items on a computer running Windows.
• Zabbix version: 4.2.6
• Windows version: 2012 R2
The computer running Windows must have the Zabbix agent installed.
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.
Zabbix Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Zabbix installation.
Zabbix Agent Configuration Required
First, the Zabbix agent installed on the Windows computer must be configured in Active mode.
Here is an example of a Zabbix agent configuration file in Passive mode: zabbix_agentd.conf
Here is an example of a Zabbix agent configuration file in Active mode: zabbix_agentd.conf
We need to test the WMI communication.
On the Windows computer, open a Powershell command-line and try to get the logged username.
You have finished the required part of the configuration.
Tutorial – Zabbix Monitor Windows Log File
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 zabbix login](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/zabbix-login.webp)
After a successful login, you will be sent to the Zabbix Dashboard.
![zabbix dashboard zabbix dashboard](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/zabbix-dashboard.webp)
On the dashboard screen, access the Configuration menu and select the Host option.
![zabbix add host zabbix add host](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/zabbix-add-host.webp)
On the top right of the screen, click on the Create host button.
![Zabbix Create Host Zabbix Create Host](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Create-Host.webp)
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 zabbix linux - Antes](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/zabbix-Cisco-Antes.webp)
Here is the new image with our configuration.
![Zabbix Windows host Zabbix Windows host](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Windows-host.webp)
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 zabbix add host](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/zabbix-add-host.webp)
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 Zabbix Windows Service Application menu](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Windows-Service-Application-menu.webp)
On the top right part of the screen, click on the Create application button.
![Zabbix Windows Service Application Zabbix Windows Service Application](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Windows-Service-Application.webp)
On the Host applications screen, create a new application named: WMI
![Zabbix monitor wmi windows application Zabbix monitor wmi windows application](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2019/09/Zabbix-monitor-wmi-windows-application.webp)
After finishing the Application creation, access the Items tab.
![Zabbix Item Tab Zabbix Item Tab](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Item-Tab.webp)
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: Username
• Type: Zabbix Agent (Active)
• Key: wmi.get[“root\cimv2″,”SELECT username from Win32_ComputerSystem2”]
• Type of Information: Text
• Update interval: 60 Second
• Application: WMI
![Zabbix WMI monitor Windows Zabbix WMI monitor Windows](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2019/09/Zabbix-WMI-monitor-Windows.webp)
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 Zabbix Latest data](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Latest-data.webp)
Use the filter configuration to select the desired hostname and click on the Apply button.
In our example, we selected the hostname WINDOWS-SERVER-01.
![Zabbix Windows service Filter Zabbix Windows service Filter](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2018/08/Zabbix-Windows-service-Filter.webp)
You should be able to see the results of your Windows log file monitoring using Zabbix.
![Zabbix wmi monitoring Zabbix wmi monitoring](https://d1ny9casiyy5u5.cloudfront.net/wp-content/uploads/2019/09/Zabbix-wmi-monitoring.webp)
Congratulations! You have configured the Zabbix WMI monitoring feature on Windows.