Zabbix Documentation 4.2

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:installation:install:win_agent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:installation:install:win_agent [2018/11/20 10:40]
martins-v minor formatting fixes
manual:installation:install:win_agent [2019/04/08 08:52]
martins-v adding 'libressl' support
Line 1: Line 1:
-==== Building ​Windows ​agent binaries with/​without TLS ====+==== Building ​Zabbix ​agent on Windows ​====
  
 === Overview === === Overview ===
  
-This section demonstrates how to build Windows agent binaries from sources with or without TLS.+This section demonstrates how to build Zabbix ​Windows agent binaries from sources with or without TLS.
  
 === Compiling OpenSSL === === Compiling OpenSSL ===
Line 56: Line 56:
   - In the event that errors occur, it is recommended that you delete the CMake cache before attempting to repeat the CMake build process. In the CMake GUI, the cache can be deleted by selecting %%"​%%File > Delete Cache%%"​%%.   - In the event that errors occur, it is recommended that you delete the CMake cache before attempting to repeat the CMake build process. In the CMake GUI, the cache can be deleted by selecting %%"​%%File > Delete Cache%%"​%%.
   - The build directory should now contain a usable build system - //​Makefile//​.   - The build directory should now contain a usable build system - //​Makefile//​.
-  - Open a commandline window e.g. the //x64 Native Tools Command Prompt for VS 2017// and navigate to the //​Makefile//​ mentioned above.+  - Open a commandline window e.g. the x64 Native Tools Command Prompt for VS 2017 and navigate to the //​Makefile//​ mentioned above.
   - Run NMake command: <​code>​   - Run NMake command: <​code>​
 E:​\pcre-8.41\build>​ nmake install E:​\pcre-8.41\build>​ nmake install
Line 87: Line 87:
 </​code>​ </​code>​
   - New binaries are located in e:​\zabbix-4.2.0\bin\win64. Since OpenSSL was compiled with '​no-shared'​ option, Zabbix binaries contain OpenSSL within themselves and can be copied to other machines that do not have OpenSSL.   - New binaries are located in e:​\zabbix-4.2.0\bin\win64. Since OpenSSL was compiled with '​no-shared'​ option, Zabbix binaries contain OpenSSL within themselves and can be copied to other machines that do not have OpenSSL.
 +
 +=== Compiling Zabbix with LibreSSL ===
 +
 +The process is similar to compiling with OpenSSL, but you need to make small changes in files located in the ''​build\win32\project''​ directory:
 +    * In ''​Makefile_tls''​ delete ''/​DHAVE_OPENSSL_WITH_PSK''​. i.e. find <​code>​
 +CFLAGS = $(CFLAGS) /​DHAVE_OPENSSL /​DHAVE_OPENSSL_WITH_PSK</​code>​and replace it with <​code>​
 +CFLAGS = $(CFLAGS) /​DHAVE_OPENSSL</​code>​
 +    * In ''​Makefile_common.inc''​ add ''/​NODEFAULTLIB:​LIBCMT''​ i.e. find <​code>​
 +/​MANIFESTUAC:"​level='​asInvoker'​ uiAccess='​false'"​ /​DYNAMICBASE:​NO /​PDB:​$(TARGETDIR)\$(TARGETNAME).pdb</​code>​and replace it with <​code>​
 +/​MANIFESTUAC:"​level='​asInvoker'​ uiAccess='​false'"​ /​DYNAMICBASE:​NO /​PDB:​$(TARGETDIR)\$(TARGETNAME).pdb /​NODEFAULTLIB:​LIBCMT</​code>​