How to install Zabbix Proxy on Raspberry PI with PSK encryption

Опубликовано: 16 Январь 2020
на канале: Twikki
3,406
33

Hi guys, Here's a step by step video on how to set up Zabbix Proxy on a Raspberry PI. I had to record some with a camera, I don't know if there is a way to capture the video output, if you got any ideas, let me know! will make the quality much better :)

0:00 - Flash the SD card with Raspbian
08:35 - Initial IP Address on Raspberry PI
12:29 - Enable SSH
13:22 - Connect to the Raspberry PI with Putty and begin configuration
22:15 - Enable encryption



List of all commands used in this video in the correct order:


Show's the IP configuration
ifconfig



if you don't get a dhcp address, and have to set a static one
sudo nano /etc/dhcpcd.conf


Open the initial config
Sudo raspi-config



options 5: enable SSH


sudo reboot


putty to the ip address


options 1: Change default password


options 2: Change hostname


options 4: Change time zone


options 7: Advanced options - Expand file system


reboot


sudo su


wget https://repo.zabbix.com/zabbix/4.4/ra...
sudo dpkg -i zabbix-release_4.4-1+buster_all.deb
sudo apt update


apt upgrade


reboot


sudo su


sudo apt install -y zabbix-proxy-sqlite3 zabbix-agent zabbix-sender zabbix-get


sudo nano /etc/zabbix/zabbix_proxy.conf
Change server ip
Change hostname
Change DB name to /tmp/zbxproxy.db


sudo nano /etc/zabbix/zabbix_agentd.conf
Change server active and passive server ip
Change hostname


add proxy in zabbix GUI


sudo service zabbix-proxy start
sudo service zabbix-agent start


sudo systemctl enable zabbix-proxy
sudo systemctl enable zabbix-agent


enable encryption:




openssl rand -hex 32


Copy the generated value into zabbix


cd /etc/zabbix/zabbix_proxy.psk


Copy the generated value into the new file you just created


sudo nano /etc/zabbix_proxy.conf


TLSConnect=psk
TLSAccept=psk
TLSPSKFile=/etc/zabbix/zabbix_proxy.psk
TLSPSKIdentity=PSK 001


sudo service zabbix-proxy restart
sudo service zabbix-agent restart


Create a host in zabbix
add 2 templates:
template app zabbix proxy
template OS linux by zabbix agent active


( to see logs )
tail -f /var/log/zabbix/zabbix_proxy.log


Смотрите видео How to install Zabbix Proxy on Raspberry PI with PSK encryption онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Twikki 16 Январь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,406 раз и оно понравилось 33 людям.