N
N
Nday0012020-07-02 21:36:13
Zabbix
Nday001, 2020-07-02 21:36:13

How to upload a configuration file when installing Zabbix agent on Windows?

Currently I am installing Zabbix agent using the command

msiexec /i "C:\Zabbix\zabbix_agent-4.4.5-windows-amd64-openssl.msi" HOSTNAME=%HOSTNAME% HOSTNAMEFQDN=%HOSTNAME%.%DOMAIN% SERVER=%zabbixserverIPaddress% SERVERACTIVE=%zabbixserverIPaddress% LPORT=10050 RMTCMD=1 SKIP=fw ENABLEREMOTECOMMANDS=1 /qn
.
What do I need to do to automatically add the value of the "UserParameter" variable to the configuration file during installation?

Can I take a ready-made configuration file (and put it in the folder with the installer) without specifying "Hostname" and Zabbix Server address in it, passing Hostname and Server using the msi installation parameters? Will it work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nobody_Admin, 2020-07-09
@Nobody_Admin

Installation through msi is critical? You can distribute the agent along with the config by installing the service with a separate command. In this case, you can add Hostname and Server to the config using any script, using the same bat file.

B
Belfigor, 2020-07-11
@AdminGuide

As one of the options for installing and distributing zabbix agent configs and utilities to expand its functionality, you can try using the Zabbix Helper Kit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question