Following previous tutorials concerning Zabbix series, this article describes how to install and setup an instance of Zabbix agent to run as a service on Microsoft Windows systems in order to monitor your infrastructure windows environments, especially server machines. The pre-compiled zip agents for Windows environments can be obtained from official Zabbix download page and manually installed and started on the system using windows Command Prompt as in the following example:. To stop the service run the same command as above with --stop argument and to uninstall the service use the --uninstall argument.
Once the Zabbix agent msi file has been downloaded on your system, run it and supply the required information in order to configure and install the agent on the target monitored host as it follows:.
Almost all Windows based systems have Windows Firewall active and running, therefore zabbix agent port must be opened in firewall in order to communicate with zabbix server. Next, click on Allow another app button and a new window should open.
Next, make sure you check and open the firewall rule on the network segment where zabbix server is located in your network and hit OK button to finish and apply configuration. In order to test if Zabbix agent running on windows is reachable from Zabbix server side, use telnet or netcat command on zabbix server against windows agent IP-Port and a Connected message should appear.
Hit Enter key to generate an error message and automatically disconnect from agent:. On Host window add the FQDN of your windows agent machine in Host name filed, add an arbitrary name to Visible name filed in order to easily identify the monitored machine on Zabbix panel, make sure the host is included into a Group Servers and add the IP Address of your windows host in Agent interfaces filed.
The Port value leave it unchanged. Next, go to Template tab and hit on Select button. A new window with Zabbix Templates should appear. Navigate through this window, check Template OS Windows and hit on Select button to add the template. Once the Template OS Windows appears on Link new templates filed, hit on Add button in order to link this template to the windows host configuration.
Finally, after the Template OS Windows is visible in Linked Templates filed hit on below Add button to complete the process and add the entire Windows host configuration. Just assure that your windows host Status is set to Enabled and wait a few minutes in order for Zabbix server to contact the windows agent side and process the received remote data.
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web.
Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support. Tags: zabbix. View all Posts. I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting. Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.
I am having problems with the agent, Zabbix server cant read the network interface from Zabbix agent. I am using HyperV on this server and have a virtual network that is connected to the virtual switch.
Zabbix agent is trying to get information from my physical network on the server, and not from the virtual network that has all required information for the network IP, DNS.
I wish the better for you! This tutorial helps me a lot! I was trying for days to enable agent on windows for my zabbix and I lost a little, but very important configuration: Choose a template for station. I searched a lot on Zabbix Manual too and I only found here! And now it works! I am installing Zabbix on Ubuntu Serve I can install everything.Zabbix agent is deployed on a monitoring target to actively monitor local resources and applications hard drives, memory, processor statistics etc.
The agent gathers operational information locally and reports data to Zabbix server for further processing. In case of failures such as a hard disk running full or a crashed service processZabbix server can actively alert the administrators of the particular machine that reported the failure. Zabbix agents are extremely efficient because of use of native system calls for gathering statistical information.
In a passive check the agent responds to a data request. Zabbix server or proxy asks for data, for example, CPU load, and Zabbix agent sends back the result. Active checks require more complex processing. The agent must first retrieve a list of items from Zabbix server for independent processing.
Then it will periodically send new values to the server. Whether to perform passive or active checks is configured by selecting the respective monitoring item type. Zabbix agent processes items of type 'Zabbix agent' or 'Zabbix agent active '. See the package installation section for instructions on how to install Zabbix agent as package.
Alternatively see instructions for manual installation if you do not want to use packages. If the above does not work you have to start it manually. Zabbix agent is distributed as a zip archive.
After you download the archive you need to unpack it. Choose any folder to store Zabbix agent and the configuration file, e. See more details on installing and running Zabbix agent on Windows. It is possible to run multiple instances of the agent on a host. A single instance can use the default configuration file or a configuration file specified in the command line.
In case of multiple instances each agent instance must have its own configuration file one of the instances can use the default configuration file.
Note that the usable range of PIDs for changing the log level of a single agent process is 1 to Zabbix agent on UNIX is designed to run as a non-root user.
It will run as whatever non-root user it is started as. So you can run agent as any non-root user without any issues. If you will try to run it as 'root', it will switch to a hardcoded 'zabbix' user, which must be present on your system. You can only run agent as 'root' if you modify the 'AllowRoot' parameter in the agent configuration file accordingly.
Note that the agent requires a UTF-8 locale so that some textual agent items can return the expected content. Most modern Unix-like systems have a UTF-8 locale as default, however, there are some systems where that may need to be set specifically. Before version 2. Starting from version 2. User Tools Log In.Functions: -i --install Install Zabbix agent as a service.
How to Install Zabbix Agent on Windows System
Supported parameters:. User Tools Log In. Site Tools Search. Sidebar Zabbix Manual. Zabbix manpages. Zabbix Protocols. Zabbix documentation in French. Zabbix documentation in Japanese.
Zabbix documentation in Portuguese. Zabbix documentation in Russian. Table of Contents 5 Zabbix Agent Windows. Create configuration file. Install agent as a Windows service. Run agent.
DLL is needed. Microsoft Knowledge Base article number describes this in detail and contains a download link. It can be useful to substitute long and complex parameter name with a smaller and simpler one. Starting from version 1.
BufferSend no 5 Do not keep data longer than N seconds in buffer.A native Zabbix agent, developed in C language, may run on various supported platformsincluding Linux, UNIX and Windows, and collect data such as CPU, memory, disk and network interface usage from a device.
The monitoring configurations are centralized in Zabbix server, making it easier to manage the Zabbix agent, which can use a single configuration file on all servers. Zabbix agents support both passive polling and active checks trapping. Zabbix may perform checks based on an interval, however, it is also possible to schedule specific times for item polling. See full list of supported checks.
Zabbix agent functionality can be extended using the following methods: loadable modules user parameters Zabbix sender. Support for monitoring text logs and the Windows Event Log is a native function of Zabbix agent, including support for rotation. It is possible to graph data from log items, when specific-content extraction capabilities are used.
The logs are constantly analyzed by Zabbix agent and when a defined search item is found, Zabbix server is notified and may even take some action or automatically send a notification to a user or group. Zabbix agent features native Windows Management Instrumentation WMI support, enhancing the ability to easily obtain and monitor real-time system information and performance metrics from Windows servers and workstations.
WMI queries can be performed with wmi. Small footprint and low resource Due to its small footprint, the agent can be run on devices with limited resources. A Zabbix agent running under Linux:.
A Zabbix agent running under MS Windows:. Passive checks polling : Zabbix server or proxy requests a value from Zabbix agent Agent processes the request and returns the value to Zabbix server or proxy Active checks trapping : Zabbix agent requests from Zabbix server or proxy a list of active checks Agent sends the results in periodically. No limits or hidden costs. Text log Windows eventlog.
System uptime System time Users connected Performance counter Windows.Zabbix Agent is installed on remote systems needs to monitor through Zabbix server.
How to Install Zabbix Agent and Add Windows Host to Zabbix Monitoring – Part 4
The Zabbix agent collects resource utilization and applications data on client system and provide such information to zabbix server on their requests. This article will help you to install Zabbix agent service on windows system. Download latest windows zabbix agent source code from zabbix official site or use below link to download zabbix agent 3. Now edit configuration and update following values. To open services control panel use below steps.
You have successfully installed Zabbix Agent on Windows system. Lets Add Host in Zabbix Server to be monitor. I, Rahul Kumar am the founder and chief editor of TecAdmin.
I am getting error saying windows could not start the zabbix agent service on local Computer error the service did not respond to the start or control request in a timely fashion.
I am new to Zabbix. I have some queries.! Can anyone help me with this? Zabbix server need to install on one instance, this provide you Zabbix UI. Then you need to install Zabbix agent on each machine, you need to monitor.
To fetch data from any machine, Zabbix connects agent on that system and collect data of that machine. How much disk space does it take?An overview of Zabbix 4.0 and how we are using it.
How much storage does it take? Disk space is less than 1MB. Great article and very useful thank you! One challenge for me was how to install the agent on hundreds of servers.
Save my name, email, and website in this browser for the next time I comment. Search for: Search. AgentInstallmonitoringzabbix. Share on Facebook. Share on Twitter. Share on LinkedIn. Share on Reddit. Share on Tumblr. Share on Whatsapp. Rahul Connect on Facebook Connect on Twitter. Related Posts February 3, November 6, at pm. Just install the agent version without encryption and re-do the process.
October 30, at am. Rahul K. Reply to Rahul to Rahul K.User Tools Log In. Site Tools Search. Sidebar Zabbix Manual.
Download and install Zabbix
Zabbix manpages. Zabbix documentation in Japanese. Zabbix documentation in Polish. Zabbix documentation in Portuguese. Zabbix documentation in Russian. It can be used to substitute long and complex item key with a smaller and simpler one. Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
Different Alias keys may reference the same item key. BufferSend no 5 Do not keep data longer than N seconds in buffer. BufferSize no Maximum number of values in a memory buffer.
The agent will send all collected data to Zabbix server or proxy if the buffer is full. DebugLevel no 3 Specifies debug level: 0 - no debug 1 - critical information 2 - error information 3 - warnings 4 - for debugging produces lots of information EnableRemoteCommands no 0 Whether remote commands from Zabbix server are allowed.
Host metadata is used only at host auto-registration process active agent. If not defined, the value will be acquired from HostMetadataItem. An agent will issue an error and not start if the specified value is over the limit or a non-UTF-8 string. This option is supported in version 2. HostMetadataItem no Optional parameter that defines a Zabbix agent item used for getting host metadata. This option is only used when HostMetadata is not defined.You can run a single instance of Zabbix agent or multiple instances of the agent on a Microsoft Windows host.
In case of multiple instances each agent instance must have its own configuration file one of the instances can use the default configuration file. See the configuration file options for details on configuring Zabbix Windows agent.
To perform active checks on a host Zabbix agent needs to have the hostname defined. The hostname value on the agent side can be defined by either the Hostname or HostnameItem parameter in the agent configuration file - or the default values are used if any of these parameters are not specified. The default value for Hostname is the value returned by the HostnameItem parameter. So, in effect, if both these parameters are unspecified the actual hostname will be the host NetBIOS name; Zabbix agent will use NetBIOS host name to retrieve the list of active checks from Zabbix server and send results to it.
Starting from Zabbix agent 1. Host name is also used as part of Windows service name which is used for installing, starting, stopping and uninstalling the Windows service.
Therefore, to have a different Windows service name for each Zabbix agent instance, each instance must use a different host name. User Tools Log In. Site Tools Search. Sidebar Zabbix Manual. Zabbix manpages. Zabbix documentation in Russian. Table of Contents 2 Zabbix agent on Microsoft Windows. Installing agent as Windows service. Uninstalling agent Windows service. Zabbix agent runs as a Windows service. The system. To start the agent service, you can use Control Panel or do it from command line.
To stop the agent service, you can use Control Panel or do it from command line. Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.