Zabbix uses PSK shared key to encrypt communication between Server and Agent

Zabbix uses PSK shared key to encrypt communication between Server and Agent

Since Zabbix version 3.0, it has supported encrypted communication between Zabbix server, Zabbix proxy, Zabbix agent, zabbix_sender and zabbix_get. The encryption methods include pre-shared key (PSK) and certificate encryption. Encryption configuration is optional. Some proxies and agents can use certificate authentication to encrypt communication, others can use PSK encryption, and the rest can communicate without encryption. It should be noted that if you want to use encrypted communication, you must add the –with-openssl parameter when compiling.

Generate and add a PSK shared key

Use the command openssl rand -hex 32 to generate a string of keys. The configuration steps are as follows:

[root@zabbix scripts]# openssl rand -hex 32
ef52cbe2d1a35e6bb3c43b22bd4f1a1d7bf24d1ccb7c47f6a602425970da5432
# Write the generated key to the file vim /usr/local/zabbix/etc/zabbix_agentd.conf.d/zabbix_agentd.psk
vim /usr/local/zabbix/etc/zabbix_agentd.conf
#Add TLSConnect=psk
TLSAccept=psk
TLSPSKFile=/usr/local/zabbix/etc/zabbix_agentd.conf.d/zabbix_agentd.psk
TLSPSKIdentity=PSKTest
#Restart the zabbix_agent process after the configuration is completed

Add in zabbix web gui

Zabbix uses PSK shared key to encrypt communication between Server and Agent

Test Command

zabbix_get -s 127.0.0.1 -k "system.cpu.load[all,avg1]" --tls-connect=psk --tls-psk-identity="PSK 001" --tls-psk-file=/etc/zabbix/zabbix_agentd.conf.d/zabbix_agentd.psk

Summarize

The above is what I introduced to you about Zabbix using PSK shared key to realize communication encryption between Server and Agent. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time!

You may also be interested in:
  • How to deploy zabbix_agent in docker
  • Detailed explanation of Linux zabbix agent deployment and configuration methods
  • Installation and configuration method of Zabbix Agent on Linux platform
  • Install and configure Zabbix Agentd on Windows
  • Installation process of zabbix-agent on Kylin V10

<<:  MySQL trigger simple usage example

>>:  jQuery plugin to achieve seamless carousel

Recommend

CSS achieves footer "bottom absorption" effect

We often encounter this problem: how to use CSS t...

Solve the problem that Docker cannot ping the host machine under Mac

Solution Abandon the Linux virtual machine that c...

Detailed troubleshooting of docker.service startup errors

Execute the following command to report an error ...

About MySQL 8.0.13 zip package installation method

MySQL 8.0.13 has a data folder by default. This f...

How to monitor mysql using zabbix

Zabbix deployment documentation After zabbix is ​...

MySQL 5.5 installation and configuration graphic tutorial

Organize the MySQL 5.5 installation and configura...

A brief analysis of crontab task scheduling in Linux

1. Create a scheduling task instruction crontab -...

The use and difference between JavaScript pseudo-array and array

Pseudo-arrays and arrays In JavaScript, except fo...

Solve the margin: top collapse problem in CCS

The HTML structure is as follows: The CCS structu...

In-depth analysis of MySQL data type DECIMAL

Preface: When we need to store decimals and have ...

MySQL Optimization Summary - Total Number of Query Entries

1. COUNT(*) and COUNT(COL) COUNT(*) usually perfo...

Detailed installation and uninstallation tutorial for MySQL 8.0.12

1. Installation steps for MySQL 8.0.12 version. 1...

Specific use of Bootstrap5 breakpoints and containers

Table of contents 1. Bootstrap5 breakpoints 1.1 M...

Explore the truth behind the reload process in Nginx

Today's article mainly introduces the reload ...