When trying to install a single instance of Zabbix Agent in Windows 10/11 using the provided Zip archive, I'm facing an odd behavior.
I've downloaded the Zip archive and followed the installation instructions.
The downloaded archive comes with the following structure.
From the documentation, "to install a single instance of Zabbix Agent with the default configuration file", I need to input the following command.
After trying this, I get the following error.
The same error happens if I try the "--start", "--stop" or "--uninstall" parameters.
I can only install or manipulate the Agent if I explicitly tell where the configuration file is (using "--config" parameter), or by copying the conf file to the same directory where the binary is and renaming it with the "win.conf" suffix.
In my example, Zabbix Agent 2 binary is looking for a "C:\zabbix\bin\zabbix_agent2.win.conf" configuration file that does not exist.
As seen from the Agent2 archive above, the default configuration file would be "C:\zabbix\conf\zabbix_agent2.conf".
First, the package does not provide a "win.conf" suffix for the configuration file name.
Second, the file is placed inside a "conf" directory, not the same as the binary itself.
As I understand it, the Agent's binary is looking for a configuration file in the same directory, but the original archive comes with a different structure.
Maybe it should look for a "..\conf\zabbix_agent2.conf" file instead.
Therefore, I believe that the provided archive file for the Zabbix Agent is packed with a different organization than what the Agent binary is expecting; or, the binary is pointing to a wrong configuration file by default.