{"id":12763,"date":"2022-05-15T11:14:13","date_gmt":"2022-05-15T08:14:13","guid":{"rendered":"https:\/\/kifarunix.com\/?p=12763"},"modified":"2024-03-09T13:02:07","modified_gmt":"2024-03-09T10:02:07","slug":"install-zabbix-agent-on-windows-systems","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-zabbix-agent-on-windows-systems\/","title":{"rendered":"Install Zabbix Agent on Windows Systems"},"content":{"rendered":"\n<p>This guide will take you through how to install Zabbix agent on Windows systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Zabbix Agent on Windows Systems<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.zabbix.com\/zabbix_agent\" target=\"_blank\" rel=\"noreferrer noopener\">Zabbix<\/a> agent can be used to poll various system metrics as outlined below and push them to Zabbix server for visualization.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Network<\/th><td>Packets\/bytes transferred<br>Errors\/dropped packets<br>Collisions<\/td><\/tr><tr><th>CPU<\/th><td>Load average<br>CPU idle\/usage<br>CPU utilization data per individual process<\/td><\/tr><tr><th>Memory<\/th><td>Free\/used memory<br>Swap\/pagefile utilization<\/td><\/tr><tr><th>Disk<\/th><td>Space free\/used<br>Read and write I\/O<\/td><\/tr><tr><th>Service<\/th><td>Process status<br>Process memory usage<br>Service status (ssh, ntp, ldap, smtp, ftp, http, pop, nntp, imap)<br>Windows service status<br>DNS resolution<br>TCP connectivity<br>TCP response time<\/td><\/tr><tr><th>File<\/th><td>File size\/time<br>File exists<br>Checksum<br>MD5 hash<br>RegExp search<\/td><\/tr><tr><th>Log<\/th><td>Text log<br>Windows eventlog<\/td><\/tr><tr><th>Other<\/th><td>System uptime<br>System time<br>Users connected<br>Performance counter (Windows)<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Zabbix Agent capabilities<\/figcaption><\/figure>\n\n\n\n<p>Download Zabbix Windows agent install from the <a href=\"https:\/\/www.zabbix.com\/download_agents\" target=\"_blank\" rel=\"noreferrer noopener\">downloads page<\/a>.<\/p>\n\n\n\n<p>You can simply get the Zabbix agent installer download link and pull using Powershell.<\/p>\n\n\n\n<p>Note, we are using Windows 10 in this guide.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Launch PowerShell as administrator.<\/li>\n\n\n\n<li>Run the command below to download the Zabbix agent Windows installer. <strong><em>Replace the link accordingly<\/em><\/strong>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd C:\\Users\\&lt;username&gt;\\Downloads<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Invoke-WebRequest -Uri `\n\"https:\/\/cdn.zabbix.com\/zabbix\/binaries\/stable\/6.0\/6.0.4\/zabbix_agent2-6.0.4-windows-amd64-openssl.msi\" `\n-Outfile zabbix_agent2-6.0.4-windows-amd64-openssl.msi<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Zabbix agent;<\/li>\n<\/ul>\n\n\n\n<p>You can install by double clicking the agent installer or by using Powershell.<\/p>\n\n\n\n<p>To launch the Zabbix agent Windows installer wizard on PowerShell;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\\zabbix_agent2-6.0.4-windows-amd64-openssl.msi<\/code><\/pre>\n\n\n\n<p>The installation Wizard will launch in a few sec.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-agent-welcom.png\" class=\"td-modal-image\"><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"489\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-agent-welcom.png\" alt=\"Install Zabbix Agent on Windows Systems\" class=\"wp-image-12770\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-agent-welcom.png?v=1652597099 816w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-agent-welcom-768x460.png?v=1652597099 768w\" sizes=\"(max-width: 816px) 100vw, 816px\" \/><\/figure><\/div><\/a><\/div>\n\n\n\n<p>Click Next and accept the End User License Agreement.<\/p>\n\n\n\n<p>Next, <strong>Set the Zabbix agent hostname, the Zabbix server IP for active and passive checks<\/strong>. Ensure you define the correct hostname as this must match the hostname while adding the host to Zabbix server for monitoring.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-server-IP.png\" class=\"td-modal-image\"><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"530\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-server-IP.png\" alt=\"Install Zabbix Agent on Windows Systems\" class=\"wp-image-12771\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-server-IP.png?v=1652597172 829w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/zabbix-server-IP-768x491.png?v=1652597172 768w\" sizes=\"(max-width: 829px) 100vw, 829px\" \/><\/figure><\/div><\/a><\/div>\n\n\n\n<p>On Custom setup, just click Next.<\/p>\n\n\n\n<p>Click <strong>Install<\/strong> to install Zabbix agent on Windows.<\/p>\n\n\n\n<div><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/install-zabbix-windows.png\" class=\"td-modal-image\"><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"542\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/install-zabbix-windows.png\" alt=\"Install Zabbix Agent on Windows Systems\" class=\"wp-image-12772\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/install-zabbix-windows.png?v=1652597205 841w, https:\/\/kifarunix.com\/wp-content\/uploads\/2022\/05\/install-zabbix-windows-768x495.png?v=1652597205 768w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><\/figure><\/div><\/a><\/div>\n\n\n\n<p>When the installation is done, click <strong>Finish<\/strong> to exit the Zabbix agent installation wizard.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check Zabbix Agent Status<\/li>\n<\/ul>\n\n\n\n<p>The agent is started upon installation;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Service -Name \"*zabbix*\"<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Status   Name               DisplayName\n------   ----               -----------\nRunning  Zabbix Agent 2     Zabbix Agent 2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open Zabbix Agents ports on Firewall<\/li>\n<\/ul>\n\n\n\n<p>Zabbix agent listens on port 10050\/tcp by default;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-NetTCPConnection | where Localport -eq 10050 | select LocalAddress,LocalPort,State<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>LocalAddress LocalPort  State\n------------ ---------  -----\n::               10050 Listen<\/code><\/pre>\n\n\n\n<p>Run the command below to open Zabbix agent on Windows firewall. Replace <strong><code>&lt;Zabbix Server IP address&gt;<\/code><\/strong> with your Zabbix server address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>New-NetFirewallRule -DisplayName \"Allow Zabbix Checks on port 10050\" `\n-RemoteAddress &lt;Zabbix Server IP address&gt; -Direction Inbound `\n-Protocol TCP -Action Allow -LocalPort 10050 -Profile Domain<\/code><\/pre>\n\n\n\n<p>You can also allow ping, to monitor availability using ping;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netsh advfirewall firewall add rule name=\"ICMP Allow incoming V4 echo request\" `\nprotocol=\"icmpv4:8,any\" dir=in action=allow<\/code><\/pre>\n\n\n\n<p>Also ensure that you can connect to the Zabbix server on port 10051\/tcp.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add and Monitor Windows Host from the Zabbix Server<\/h3>\n\n\n\n<p>You can now add the host to the server for monitoring. Check the link below on how to add hosts to Zabbix server for monitoring.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other tutorials<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/ship-system-logs-to-elk-stack-using-elastic-agents\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ship System Logs to ELK Stack using Elastic Agents<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/monitor-windows-system-metrics-using-sensu\/\" target=\"_blank\" rel=\"noreferrer noopener\">Monitor Windows System Metrics using Sensu<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/monitor-process-creation-events-on-windows-systems-using-wazuh-and-elk-stack\/\" target=\"_blank\" rel=\"noreferrer noopener\">Monitor Process Creation Events on Windows Systems using Wazuh and ELK stack<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will take you through how to install Zabbix agent on Windows systems. Install Zabbix Agent on Windows Systems Zabbix agent can be used<\/p>\n","protected":false},"author":1,"featured_media":12774,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,121],"tags":[5169,5171,5170,5172],"class_list":["post-12763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-howtos","tag-install-zabbix-agent-on-windows","tag-monitor-windows-using-zabbix","tag-zabbix-agent-windows","tag-zabbix-agents","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12763"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=12763"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12763\/revisions"}],"predecessor-version":[{"id":20511,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/12763\/revisions\/20511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/12774"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=12763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=12763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=12763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}