Installazione di un agent Zabbix: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
=Installazione pacchetto= | |||
==Debian > Wheezy== | |||
<pre> | <pre> | ||
| Line 16: | Line 19: | ||
</pre> | </pre> | ||
==Debian Wheezy== | |||
* Per Wheezy l'ultima release disponibile è la 3.4: | * Per Wheezy l'ultima release disponibile è la 3.4: | ||
<pre> | <pre> | ||
cd /tmp && \ | cd /tmp && \ | ||
wget https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb && | wget https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb | ||
dpkg -i | </pre> | ||
* Se non va con wget, usare curl | |||
cd /tmp && curl -O -J https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb | |||
* Se curl non è installato, instalallarlo | |||
* Se non si installa | |||
wget http://archive.debian.org/debian/pool/main/c/curl/curl_7.26.0-1+wheezy13_i386.deb | |||
wget http://archive.debian.org/debian/pool/main/c/curl/libcurl3_7.26.0-1+wheezy13_i386.deb | |||
dpkg -i libcurl3_7.26.0-1+wheezy13_i386.deb | |||
apt-get install curl | |||
* Installare zabbix | |||
<pre> | |||
dpkg -i zabbix-release_3.4-1+wheezy_all.deb && \ | |||
sudo apt-get update && \ | sudo apt-get update && \ | ||
sudo apt-get install zabbix-agent | sudo apt-get install zabbix-agent | ||
</pre> | </pre> | ||
=Configurazione= | |||
* Configurare i parametri: | * Configurare i parametri: | ||
sudoedit /etc/zabbix/zabbix_agentd.conf | sudoedit /etc/zabbix/zabbix_agentd.conf | ||
Revision as of 10:23, 10 January 2020
Installazione pacchetto
Debian > Wheezy
if (lsb_release -c -s>/dev/null 2>&1); \ then echo "Good: lsb_release is installed."; \ cd /tmp && \ wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-2+$(lsb_release -c| cut -f 2)_all.deb && \ dpkg -i zabbix-release_4.0-2+$(lsb_release -c| cut -f 2)_all.deb && \ sudo apt-get update && \ sudo apt-get install zabbix-agent; else echo -e "BAD: lsb_release is not installed. Please install it:\n sudo apt-get install lsb-release"; \ sudo apt-get install lsb-release; echo "NOW RELAUNCH." fi
Debian Wheezy
- Per Wheezy l'ultima release disponibile è la 3.4:
cd /tmp && \ wget https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb
- Se non va con wget, usare curl
cd /tmp && curl -O -J https://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+wheezy_all.deb
- Se curl non è installato, instalallarlo
- Se non si installa
wget http://archive.debian.org/debian/pool/main/c/curl/curl_7.26.0-1+wheezy13_i386.deb wget http://archive.debian.org/debian/pool/main/c/curl/libcurl3_7.26.0-1+wheezy13_i386.deb dpkg -i libcurl3_7.26.0-1+wheezy13_i386.deb apt-get install curl
- Installare zabbix
dpkg -i zabbix-release_3.4-1+wheezy_all.deb && \ sudo apt-get update && \ sudo apt-get install zabbix-agent
Configurazione
- Configurare i parametri:
sudoedit /etc/zabbix/zabbix_agentd.conf
Server=192.168.6.254 # Internal IP of Zabbix Server/Proxy ServerActive=192.168.6.254 # Internal IP of Zabbix Server/Proxy Hostname=internal-host.example.priv # Name of internal host as defined on zabbix server
- Abilitare il servizio:
sudo systemctl enable zabbix-agent.service sudo systemctl restart zabbix-agent.service sudo systemctl status zabbix-agent.service
- Definire l'host sul server Zabbix, assegnandolo al proxy precedentemente creato
- Attendere circa 5 minuti, che il server invii i dettagli di configurazione al proxy.