How to install Zabbix Proxy on Raspberry PI with PSK encryption

Published: 16 January 2020
on channel: 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


Watch video How to install Zabbix Proxy on Raspberry PI with PSK encryption online without registration, duration hours minute second in high quality. This video was added by user Twikki 16 January 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,406 once and liked it 33 people.