Найти в Дзене

Как установить zabbix agent на ubuntu 22.04 и выше.

Всем привет, я знаю многие сталкиваются с проблемами установки забикс агента для убунту 22.04 и выше, я сделал эту инструкцию чтобы избавить вас от головной боли) 1. Скачиваем - wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu$(lsb_release -rs)_all.deb 2. Распаковываем - sudo dpkg -i zabbix-release_*.deb 3. Обновляемся - sudo apt update 4. Устанавливаем - sudo apt install zabbix-agent Далее всё как обычно. After the installation is complete, you need to configure the Zabbix Agent to communicate with the Zabbix server. Edit the Zabbix Agent configuration file using your preferred text editor: sudo nano /etc/zabbix/zabbix_agentd.conf Find the following lines and replace them with the correct information: Server=<Zabbix_Server_IP>
ServerActive=<Zabbix_Server_IP>
Hostname=<Hostname_Of_Ubuntu_Client> Replace <Zabbix_Server_IP> with the IP address of your Zabbix server, and <Hostname_Of_Ubuntu_Client> with the hostname of your Ubuntu
Оглавление

Всем привет, я знаю многие сталкиваются с проблемами установки забикс агента для убунту 22.04 и выше, я сделал эту инструкцию чтобы избавить вас от головной боли)

1. Скачиваем -

wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu$(lsb_release -rs)_all.deb

2. Распаковываем -

sudo dpkg -i zabbix-release_*.deb

3. Обновляемся -

sudo apt update

4. Устанавливаем -

sudo apt install zabbix-agent

Далее всё как обычно.

Step 3: Configure Zabbix Agent

After the installation is complete, you need to configure the Zabbix Agent to communicate with the Zabbix server. Edit the Zabbix Agent configuration file using your preferred text editor:

sudo nano /etc/zabbix/zabbix_agentd.conf

Find the following lines and replace them with the correct information:

Server=<Zabbix_Server_IP>
ServerActive=<Zabbix_Server_IP>
Hostname=<Hostname_Of_Ubuntu_Client>

Replace <Zabbix_Server_IP> with the IP address of your Zabbix server, and <Hostname_Of_Ubuntu_Client> with the hostname of your Ubuntu client. Save the changes and close the editor.

Step 4: Start and Enable Zabbix Agent Service

Now that the configuration is done, start the Zabbix Agent service and enable it to start automatically at boot:

sudo systemctl start zabbix-agent
sudo systemctl enable zabbix-agent

You can check the status of the Zabbix Agent service with the following command:

sudo systemctl status zabbix-agent