Easy installation script of Zabbix Agent service.
You can choose between different options, such as:
- the Zabbix Agent version supported by your distribution.
- the source repository of the package (Zabbix or the distribution).
Works on Ubuntu, Debian and Rasbpian.
The vx_zbxagent.sh
application does not require any additional packages to work.
-
Download files from this repository directly with git or via https.
wget -O svc_zabbixagent.zip https://github.com/cybiohub/svc_zabbixagent/archive/refs/heads/main.zip
-
Unzip the zip file.
unzip svc_zabbixagent.zip
-
Make changes to the installation script
vx_zbxagent.sh
to configure it to match your environment.You can customize the following settings:
- Choose between Zabbix repository version or distribution version. By default, this is the Zabbix repository version.
- The version of Zabbix Agent you want to install.
- Directory location for additional scripts. By default in
/opt/zabbix
.
-
Once completed, set the
Configured
parameter totrue
. -
Adjust permissions.
chmod 500 vx_zbxagent.sh
-
Run the script.
./vx_zbxagent.sh
-
Configure Zabbix Agent service.
vim /etc/zabbix/zabbix_agentd.conf
# TLS PSK Identity for your Zabbix Agent. TLSPSKIdentity=YOURZABBIXAGENT # IP address of the Zabbix server(s) authorized (passive). Server=W.X.Y.Z # Name identifying the Zabbix Proxy to the Zabbix server. Hostname=YOURZABBIXAGENT
-
Activate and start the service.
systemctl enable zabbix-agent systemctl start zabbix-agent systemctl status zabbix-agent
-
Voilà! Enjoy!