This is an old revision of the document!
Zabbix agent runs as a Windows service.
You can run a single instance of Zabbix agent or multiple instances of the agent on a Microsoft Windows host. A single instance can use the default configuration file
C:\zabbix_agentd.conf 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 instances can use the default configuration file).
An example configuration file is available in Zabbix source archive as
Create a configuration file.
Create a configuration file c:/zabbix_agentd.conf (it has a similar syntax to the UNIX agent configuration file).
An example configuration file is available in Zabbix source archive as conf/zabbix_agentd.win.conf.
Install agent as a Windows service.
If you wish to use a configuration file other than c:\zabbix_agentd.conf, you should use the following command for service installation:
zabbix_agentd.exe --config <your_configuration_file> --install
A full path to the configuration file should be specified.
Now you can use Control Panel to start the agent service or run:
To perform active checks on a host Zabbix agent needs to have the hostname defined. Moreover, the hostname value set on the agent side should exactly match the “Host name” configured for the host in the frontend.
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 HostnameItem parameter is the value returned by the “system.hostname” agent key and for Windows platform it returns the NetBIOS host name.
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.
So if both parameters are unspecified then the Zabbix agent will use NetBIOS host name to retrieve the list of active checks from the Zabbix server and to send results to it.
Starting from Zabbix agent 1.8.6 version for Windows the “system.hostname” key supports an optional parameter - type of the name. The default value of this parameter is “netbios” (for backward compatibility) and the other possible value is “host”.
So, to simplify the configuration of zabbix_agentd.conf file and make it unified, two different approaches could be used.