This is a translation of the original English documentation page. Help us make it better.

4 Инсталација Windows агента из MSI-ја

Преглед

Zabbix агент се може инсталирати на Windows користећи 32-битне или 64-битне MSI инсталационе пакете, доступне за преузимање.

Минимални захтеви оперативног система за MSI инсталацију су:

  • За Zabbix агента: Windows XP (64-битни) или Windows Server 2003
  • За Zabbix агента 2: Windows 10 (32-битни) или Windows Server 2016

32-битни пакети се не могу инсталирати на 64-битне системе.

Пакети укључују:

  • TLS подршку (TLS конфигурација је опционална)
  • Услужне програме Zabbix get и Zabbix sender (могу се инсталирати заједно са Zabbix агентом/агентом 2 или одвојено)

Пакети Zabbix агента 2 не укључују додатке који се могу учитати (MongoDB, PostgreSQL, MSSQL), које је потребно преузети и инсталирати одвојено.

Инсталација се може обавити помоћу Чаробњака за подешавање или командне линије.

Иако је инсталација помоћу MSI пакета у потпуности подржана, препоручује се инсталирање барем Microsoft .NET Framework 2 за правилно руковање грешкама.

Препоручује се коришћење подразумеване локације за инсталацију коју је обезбедио инсталатер. Коришћење прилагођене локације без потребних дозвола може угрозити безбедност инсталације.

Installation steps

To install, double-click the downloaded MSI file.

Accept the license to proceed to the next step.

Specify the following parameters.

Parameter Description
Host name Specify host name.
Zabbix server IP/DNS Specify IP/DNS of Zabbix server.
Agent listen port Specify agent listen port (10050 by default).
Server or Proxy for active checks Specify IP/DNS of Zabbix server/proxy for active agent checks.
Enable PSK Mark the checkbox to enable TLS support via pre-shared keys.
Add agent location to the PATH Add agent location to the PATH variable.

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

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

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 delayed automatic startup (or automatic startup on Windows versions before Windows Server 2008/Vista).

Инсталација из командне линије

Zabbix агент се може инсталирати из командне линије покретањем MSI инсталера помоћу msiexec. На пример:

msiexec.exe /l*v "C:\package.log" /i "C:\zabbix_agent-7.2.0-windows-amd64-openssl.msi" /qn+ SERVER=192.0.2.0

Ова метода омогућава инсталације без надзора и прилагођене конфигурације коришћењем параметара.

Supported parameters

The following parameters are supported by created MSIs.

Parameter Description
ADDDEFAULT A comma-delimited list of programs to install.
Possible values: AgentProgram, GetProgram, SenderProgram, ALL.
Example: ADDDEFAULT=AgentProgram,GetProgram
ADDLOCAL A comma-delimited list of programs to install.
Possible values: AgentProgram, GetProgram, SenderProgram, ALL.
Example: ADDLOCAL=AgentProgram,SenderProgram
ALLOWDENYKEY Sequence of "AllowKey" and "DenyKey" parameters separated by ;
Use \\; to escape the delimiter.
Example: ALLOWDENYKEY="AllowKey=system.run[type c:\windows\system32\drivers\etc\hosts];DenyKey=system.run[*]"
CONF The full pathname to a custom configuration file.
Example: CONF=c:\full\path\to\user.conf
ENABLEPATH Add agent location to the PATH variable.
ENABLEPERSISTENTBUFFER Zabbix agent 2 only. Enable the usage of local persistent storage for active items.
HOSTINTERFACE An optional parameter that defines the host interface.
HOSTMETADATA An optional parameter that defines the host metadata.
HOSTMETADATAITEM An optional parameter that defines a Zabbix agent item used for getting the host metadata.
HOSTNAME An optional parameter that defines the hostname.
INCLUDE Sequence of includes separated by ;
INSTALLFOLDER The full pathname of the folder in which Zabbix components along with the configuration file will be installed.
LISTENIP A list of comma-delimited IP addresses that the agent should listen on.
LISTENPORT The agent will listen on this port for connections from the server.
LOGFILE The name of the log file.
LOGTYPE The type of the log output.
PERSISTENTBUFFERFILE Zabbix agent 2 only. The file where Zabbix agent 2 should keep the SQLite database.
PERSISTENTBUFFERPERIOD Zabbix agent 2 only. The time period for which data should be stored when there is no connection to the server or proxy.
SERVER A list of comma-delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
SERVERACTIVE The Zabbix server/proxy address or cluster configuration to get active checks from.
SKIP SKIP=fw - do not install the firewall exception rule.
STARTUPTYPE Startup type of the Zabbix Windows agent/agent 2 service. Possible values:
automatic - start the service automatically at Windows startup;
delayed - (default) delay starting the service after the automatically started services have completed startup (available on Windows Server 2008/Vista and later versions);
manual - start the service manually (by a user or application);
disabled - disable the service, so that it cannot be started by a user or application.
Example: STARTUPTYPE=disabled
STATUSPORT Zabbix agent 2 only. If set, the agent will listen on this port for HTTP status requests (http://localhost:<port>/status).
TIMEOUT Specifies timeout for communications (in seconds).
TLSACCEPT What incoming connections to accept.
TLSCAFILE The full pathname of a file containing the top-level CA(s) certificates for peer certificate verification, used for encrypted communications between Zabbix components.
TLSCERTFILE The full pathname of a file containing the agent certificate or certificate chain, used for encrypted communications between Zabbix components.
TLSCONNECT How the agent should connect to Zabbix server or proxy.
TLSCRLFILE The full pathname of a file containing revoked certificates. This parameter is used for encrypted communications between Zabbix components.
TLSKEYFILE The full pathname of a file containing the agent private key, used for encrypted communications between Zabbix components.
TLSPSKFILE The full pathname of a file containing the agent pre-shared key, used for encrypted communications with Zabbix server.
TLSPSKIDENTITY The pre-shared key identity string, used for encrypted communications with Zabbix server.
TLSPSKVALUE The pre-shared key string value, used for encrypted communications with Zabbix server.
TLSSERVERCERTISSUER The allowed server (proxy) certificate issuer.
TLSSERVERCERTSUBJECT The allowed server (proxy) certificate subject.
Examples

To install Zabbix Windows agent from the command-line, you may run, for example:

SET INSTALLFOLDER=C:\Program Files\Zabbix Agent
       
       msiexec /l*v log.txt /i zabbix_agent-7.0.0-x86.msi /qn^
        LOGTYPE=file^
        LOGFILE="%INSTALLFOLDER%\zabbix_agentd.log"^
        SERVER=192.168.6.76^
        LISTENPORT=12345^
        SERVERACTIVE=::1^
        HOSTNAME=myHost^
        TLSCONNECT=psk^
        TLSACCEPT=psk^
        TLSPSKIDENTITY=MyPSKID^
        TLSPSKFILE="%INSTALLFOLDER%\mykey.psk"^
        TLSCAFILE="c:\temp\f.txt1"^
        TLSCRLFILE="c:\temp\f.txt2"^
        TLSSERVERCERTISSUER="My CA"^
        TLSSERVERCERTSUBJECT="My Cert"^
        TLSCERTFILE="c:\temp\f.txt5"^
        TLSKEYFILE="c:\temp\f.txt6"^
        ENABLEPATH=1^
        INSTALLFOLDER="%INSTALLFOLDER%"^
        SKIP=fw^
        ALLOWDENYKEY="DenyKey=vfs.file.contents[/etc/passwd]"

You may also run, for example:

msiexec /l*v log.txt /i zabbix_agent-7.0.0-x86.msi /qn^
        SERVER=192.168.6.76^
        TLSCONNECT=psk^
        TLSACCEPT=psk^
        TLSPSKIDENTITY=MyPSKID^
        TLSPSKVALUE=1f87b595725ac58dd977beef14b97461a7c1045b9a1c963065002c5473194952

If both TLSPSKFILE and TLSPSKVALUE are passed, then TLSPSKVALUE will be written to TLSPSKFILE.

Додаци за учитавање за Zabbix агент 2

Zabbix агент 2 додаци за учитавање може се инсталирати на Windows помоћу 64-битних MSI инсталационих пакета, доступних за преузимање.

Минимални захтеви оперативног система за MSI инсталацију су Windows 10 (64-битни) или Windows Server 2016.

Пакети укључују:

Пакети не укључују Ember+ додатак, који је тренутно доступан само за изградњу из изворног кода (и за Unix и за Windows).

Пре инсталирања додатка, проверите његову README датотеку. Она може садржати додатне захтеве и упутства за инсталацију специфична за додатак.

Слично као код Zabbix agent/agent2, додаци који се могу учитати могу се инсталирати помоћу чаробњака за подешавање или командне линије.

Инсталирање преко Чаробњака за подешавање

1. Двапут кликните на преузету MSI датотеку да бисте започели инсталацију.

2. Прихватите Уговор о лиценцирању крајњег корисника.

3. Изаберите додатке за учитавање Zabbix агента 2 (MongoDB plugin, PostgreSQL plugin, MSSQL plugin) који треба инсталирати.

Препоручује се коришћење подразумеване локације за инсталирање коју је дао инсталер. Коришћење прилагођене локације без потребних дозвола може угрозити безбедност инсталације.

4. Кликните на Инсталирај да бисте започели инсталацију.

Сви изабрани додаци за учитавање Zabbix агента 2 биће инсталирани на вашу наведену локацију (подразумевано: C:\Program Files\Zabbix Agent 2), са њиховим конфигурационим датотекама инсталираним у поддиректоријуму zabbix_agent2.d.

5. Кликните на дугме Заврши да бисте изашли из Чаробњака за подешавање.

Инсталација из командне линије

Додаци за учитавање Zabbix агента 2 могу се инсталирати из командне линије покретањем MSI инсталера помоћу msiexec. На пример:

msiexec.exe /l*v "C:\package.log" /i "C:\zabbix_agent2_plugins-7.0.0-windows-amd64.msi" /qn+

MSI инсталациони пакети додатака за учитавање Zabbix агента 2 подржавају следеће параметре.

Параметар Опис
ADDDEFAULT Листа компоненти раздвојених зарезима које ће се инсталирати у њиховој подразумеваној конфигурацији. За више информација, погледајте ADDLOCAL својство.
Могуће вредности: MongodbPlugin, PostgresqlPlugin, MssqlPlugin, ALL
Пример: ADDDEFAULT=MongodbPlugin,PostgresqlPlugin
ADDLOCAL Листа компоненти раздвојених зарезима за локалну инсталацију. За више информација, погледајте ADDLOCAL својство.
Могуће вредности: MongodbPlugin, PostgresqlPlugin, MssqlPlugin, ALL
Пример: ADDLOCAL=MongodbPlugin,MssqlPlugin
INSTALLFOLDER Пуна путања до фасцикле у коју ће бити инсталиране Zabbix компоненте, са њиховим конфигурационим датотекама инсталираним у подфасцикли zabbix_agent2.d.
Пример: INSTALLFOLDER="C:\Program Files\Zabbix Agent 2"