4 Windows agent installation from MSI

Overview

Zabbix Windows agent can be installed from Windows MSI installer packages (32-bit or 64-bit) available for download.

A 32-bit package cannot be installed on a 64-bit Windows.

All packages come with TLS support, however, configuring TLS is optional.

Both UI and command-line based installation is supported.

Installation steps

To install, double-click the downloaded MSI file.

4 Windows agent installation from MSI - 图1

4 Windows agent installation from MSI - 图2

Accept the license to proceed to the next step.

4 Windows agent installation from MSI - 图3

Specify the following parameters.

ParameterDescription
Host nameSpecify host name.
Zabbix server IP/DNSSpecify IP/DNS of Zabbix server.
Agent listen portSpecify agent listen port (10050 by default).
Server or Proxy for active checksSpecify IP/DNS of Zabbix server/proxy for active agent checks.
Enable PSKMark the checkbox to enable TLS support via pre-shared keys.
Add agent location to the PATHAdd agent location to the PATH variable.

4 Windows agent installation from MSI - 图4

Enter pre-shared key identity and value. This step is only available if you checked Enable PSK in the previous step.

4 Windows agent installation from MSI - 图5

Select Zabbix components to install - Zabbix agent daemon, Zabbix sender, Zabbix get.

4 Windows agent installation from MSI - 图6

Zabbix components along with the configuration file will be installed in a Zabbix Agent folder in Program Files. zabbix_agentd.exe will be set up as Windows service with automatic startup.

4 Windows agent installation from MSI - 图7

Command-line based installation

Supported parameters

The following set of parameters is supported by created MSIs:

NumberParameterDescription
1LOGTYPE
2LOGFILE
3SERVER
4LISTENPORT
5SERVERACTIVE
6HOSTNAME
7TIMEOUT
8TLSCONNECT
9TLSACCEPT
10TLSPSKIDENTITY
11TLSPSKFILE
12TLSPSKVALUE
13TLSCAFILE
14TLSCRLFILE
15TLSSERVERCERTISSUER
16TLSSERVERCERTSUBJECT
17TLSCERTFILE
18TLSKEYFILE
19LISTENIP
20HOSTINTERFACE
21HOSTMETADATA
22HOSTMETADATAITEM
23STATUSPORTZabbix agent 2 only.
24ENABLEPERSISTENTBUFFERZabbix agent 2 only.
25PERSISTENTBUFFERPERIODZabbix agent 2 only.
26PERSISTENTBUFFERFILEZabbix agent 2 only.
27INSTALLFOLDER
28ENABLEPATH
29SKIPSKIP=fw - do not install firewall exception rule
30INCLUDESequence of includes separated by ;
31ALLOWDENYKEYSequence of “AllowKey” and “DenyKey” parameters separated by ;. Use \; to escape the delimiter.

To install you may run, for example:

  1. SET INSTALLFOLDER=C:\Program Files\za
  2. msiexec /l*v log.txt /i zabbix_agent-6.0.0-x86.msi /qn^
  3. LOGTYPE=file^
  4. LOGFILE="%INSTALLFOLDER%\za.log"^
  5. SERVER=192.168.6.76^
  6. LISTENPORT=12345^
  7. SERVERACTIVE=::1^
  8. HOSTNAME=myHost^
  9. TLSCONNECT=psk^
  10. TLSACCEPT=psk^
  11. TLSPSKIDENTITY=MyPSKID^
  12. TLSPSKFILE="%INSTALLFOLDER%\mykey.psk"^
  13. TLSCAFILE="c:\temp\f.txt1"^
  14. TLSCRLFILE="c:\temp\f.txt2"^
  15. TLSSERVERCERTISSUER="My CA"^
  16. TLSSERVERCERTSUBJECT="My Cert"^
  17. TLSCERTFILE="c:\temp\f.txt5"^
  18. TLSKEYFILE="c:\temp\f.txt6"^
  19. ENABLEPATH=1^
  20. INSTALLFOLDER="%INSTALLFOLDER%"^
  21. SKIP=fw^
  22. ALLOWDENYKEY="DenyKey=vfs.file.contents[/etc/passwd]"

or

  1. msiexec /l*v log.txt /i zabbix_agent-6.0.0-x86.msi /qn^
  2. SERVER=192.168.6.76^
  3. TLSCONNECT=psk^
  4. TLSACCEPT=psk^
  5. TLSPSKIDENTITY=MyPSKID^
  6. TLSPSKVALUE=1f87b595725ac58dd977beef14b97461a7c1045b9a1c963065002c5473194952