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:

4 Windows agent installation from MSI - 图1

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 - 图2

4 Windows agent installation from MSI - 图3

Accept the license to proceed to the next step.

4 Windows agent installation from MSI - 图4

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.
Remote commandsMark the checkbox to enable remote commands.
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 - 图5

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 - 图6

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

4 Windows agent installation from MSI - 图7

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 - 图8

Command-line based installation

Supported parameters

The following set of parameters is supported by created MSIs:

NumberParameterDescription
1LOGTYPE
2LOGFILE
3ENABLEREMOTECOMMANDS
4SERVER
5LISTENPORT
6SERVERACTIVE
7HOSTNAME
8TIMEOUT
9TLSCONNECT
10TLSACCEPT
11TLSPSKIDENTITY
12TLSPSKFILE
13TLSPSKVALUE
14TLSCAFILE
15TLSCRLFILE
16TLSSERVERCERTISSUER
17TLSSERVERCERTSUBJECT
18TLSCERTFILE
19TLSKEYFILE
20INSTALLFOLDER
21ENABLEPATH
22SKIPSKIP=fw - do not install firewall exception rule

To install you may run, for example:

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

or

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