Connecting Windows Server: Zabbix agent 2 and PSK encryption
Sign in to read this lesson
We install Zabbix agent 2 on the WIN-DC01 server: the MSI installer, the configuration file, a Windows firewall rule, a test with zabbix_get from the Zabbix server, the "Windows by Zabbix agent" template and monitoring of Windows services. At the end we encrypt the traffic between the server and the agent with a PSK.
What you will learn
- The agent is installed from an MSI:
zabbix_agent2-8.0.0-windows-amd64-openssl.msi; the main parameters areServer,ServerActiveandHostname(WIN-DC01). - The configuration file:
C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf, the service: Zabbix Agent 2, port TCP 10050. - The firewall rule is only for the Zabbix server:
New-NetFirewallRule ... -LocalPort 10050 -RemoteAddress 10.10.10.20. - Test from the server:
zabbix_get -s 10.10.10.30 -k agent.version; theWindows by Zabbix agenttemplate discovers services, disks and performance counters by itself. - PSK:
openssl rand -hex 32, on the agentTLSConnect=psk,TLSAccept=psk,TLSPSKIdentity,TLSPSKFile; the same identity and key on the host's Encryption tab.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.