GNU/Linux >> Linux Esercitazione >  >> Cent OS

Come installare l'agente Zabbix su CentOS 8/7, Ubuntu 20.04 e Debian 11/10

Nell'articolo precedente, hai visto come installare Zabbix Server sui sistemi operativi CentOS, Ubuntu e Debian.

LEGGI:​​Come installare Zabbix Server su CentOS 8 / RHEL 8

LEGGI:​​Come installare Zabbix Server su CentOS 7 / RHEL 7

LEGGI:​​Come installare Zabbix Server su Ubuntu 20.04 / 18.04

LEGGI:​​Come installare Zabbix Server su Debian 11 / Debian 10

In seguito, vedremo ora come installare Zabbix Agent sul computer remoto per monitorarlo.

Aggiungi Zabbix Agent Repository

Zabbix Agent non è disponibile nel repository di base e per ottenerlo sarà necessario installare il pacchetto di configurazione del repository Zabbix sul sistema remoto.

### CentOS 8 / RHEL 8 ###

rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm

### CentOS 7 / RHEL 7 ###

rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

### Ubuntu 20.04 ###

wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
sudo apt update

### Debian 11 ###

wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-2+debian11_all.deb
sudo dpkg -i zabbix-release_5.0-2+debian11_all.deb
sudo apt update

### Debian 10 ###

wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-1+buster_all.deb
sudo dpkg -i zabbix-release_5.0-1+buster_all.deb
sudo apt update

Installa Zabbix Agent

Dopo aver configurato il repository Zabbix sulla tua macchina, installa Zabbix Agent utilizzando il comando seguente.

### CentOS 8/7 & RHEL 8/7 ###

dnf install -y zabbix-agent

### Ubuntu 20.04 & Debian 11/10 ###

sudo apt install -y zabbix-agent

Configura l'agente Zabbix

Modifica il file dell'agente Zabbix per specificare i dettagli del server Zabbix.

### CentOS 8/7 & RHEL 8/7 ###

vi /etc/zabbix/zabbix_agentd.conf

### Ubuntu 20.04 & Debian 11/10 ###

sudo nano /etc/zabbix/zabbix_agentd.conf

Aggiorna i seguenti dettagli sul file dell'agente Zabbix.

### Zabbix Server IP Address or Hostname ###

Server=server.itzgeek.local

### Client Hostname ###

Hostname=node1.itzgeek.local

Riavvia il server dell'agente Zabbix dopo aver aggiornato le informazioni sul server Zabbix.

### CentOS 8/7 & RHEL 8/7 ###

systemctl restart zabbix-agent

### Ubuntu 20.04 & Debian 11/10 ###

sudo systemctl restart zabbix-agent

Abilita l'agente Zabbix per l'avvio automatico all'avvio del sistema.

### CentOS 8/7 & RHEL 8/7 ###

systemctl enable zabbix-agent

### Ubuntu 20.04 & Debian 11/10 ###

sudo systemctl enable zabbix-agent

Conclusione

È tutto. Ora puoi aggiungere un sistema remoto a Zabbix Server per il monitoraggio.


Cent OS
  1. Installa ElasticSearch su CentOS 7 / Debian 9 / Ubuntu 16.04 / Linux Mint 18

  2. Come installare Ansible su CentOS 7 / RHEL 7 / Ubuntu 18.04 / 16.04 e Debian 9

  3. Come installare Go Lang su CentOS 8/7 e RHEL 8/7

  4. Come installare Apache Maven su CentOS/RHEL 8/7

  5. Come installare Zabbix Agent su Debian 10/9/8

Come installare e configurare GitLab su CentOS 7 / Ubuntu 18.04 e Debian 9

Come installare Kubernetes su CentOS 7, Ubuntu 18.04/16.04 e Debian 9

Come installare MySQL 5.7/8.0 su Ubuntu 16.04/14.04 e Debian 9/8

Come installare Zabbix su RHEL/CentOS e Debian/Ubuntu

Come installare lo strumento di monitoraggio Zabbix su Debian 11/10

Come installare PHP 8 su CentOS/RHEL 8/7