0% found this document useful (0 votes)
7 views4 pages

Slide

The document provides an introduction to Zabbix, including concepts such as groups and Zabbix proxies. It details the installation process for PostgreSQL and Zabbix server, as well as the configuration for passive and active agents. Additionally, it covers agent auto-registration and creating custom metrics in Zabbix.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

Slide

The document provides an introduction to Zabbix, including concepts such as groups and Zabbix proxies. It details the installation process for PostgreSQL and Zabbix server, as well as the configuration for passive and active agents. Additionally, it covers agent auto-registration and creating custom metrics in Zabbix.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

# ZABBIX : introduction - Concepts && Défintions

<br>

* groupes : ensemble d'éléments similaires permettant un conf commune

<br>

* proxy zabbix : agent intermédiaire permettant de regrouper la collecte


d'agent dédié
%title: ZABBIX
%author: xavki

███████╗ █████╗ ██████╗ ██████╗ ██╗██╗ ██╗


╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██║╚██╗██╔╝
███╔╝ ███████║██████╔╝██████╔╝██║ ╚███╔╝
███╔╝ ██╔══██║██╔══██╗██╔══██╗██║ ██╔██╗
███████╗██║ ██║██████╔╝██████╔╝██║██╔╝ ██╗
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═╝

# ZABBIX : Installation

-----------------------------------------------------------------------

# ZABBIX : Installation

Installation de postgresql

```
apt install -y postgresql
pg_ctlcluster 14 main start

sudo -u postgres psql -c "create database zabbix;"


sudo -u postgres psql -c "create user zabbix with password 'password';"
sudo -u postgres psql -c "grant ALL privileges on database zabbix to zabbix;"

echo "listen_addresses = '*'" >> /etc/postgresql/14/main/postgresql.conf &&


systemctl restart postgresql
echo "host zabbix all 192.168.0.1/16 md5" >>
/etc/postgresql/14/main/pg_hba.conf && systemctl reload postgresql
```

-----------------------------------------------------------------------

# ZABBIX : Installation

```
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-
release_6.0-4+ubuntu22.04_all.deb
sudo dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb
sudo apt update -qq 2>&1 >/dev/null
apt install -y zabbix-server-pgsql zabbix-frontend-php php8.1-pgsql zabbix-nginx-
conf zabbix-sql-scripts zabbix-agent postgresql-client

zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | PGPASSWORD="password"


psql -h zpg1 -U zabbix zabbix
sed -i s/"#.*server_name.*"/" server_name zabbix.xavki; "/g
/etc/zabbix/nginx.conf
echo "DBPassword=password" >> /etc/zabbix/zabbix_server.conf
echo "DBHost=zpg1" >> /etc/zabbix/zabbix_server.conf
systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm
systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm
```
%title: ZABBIX
%author: xavki

███████╗ █████╗ ██████╗ ██████╗ ██╗██╗ ██╗


╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██║╚██╗██╔╝
███╔╝ ███████║██████╔╝██████╔╝██║ ╚███╔╝
███╔╝ ██╔══██║██╔══██╗██╔══██╗██║ ██╔██╗
███████╗██║ ██║██████╔╝██████╔╝██║██╔╝ ██╗
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═╝

# ZABBIX : Installation Agent Passif

-----------------------------------------------------------------------

# ZABBIX : Installation Agent Passif

```
wget -q https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/
zabbix-release_6.0-4+ubuntu22.04_all.deb
dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb
```

```
apt update
apt install -y -qq zabbix-agent
```

```
echo "
Server=zabbix1
Hostname=z2
">> /etc/zabbix/zabbix_agentd.conf
```

```
systemctl restart zabbix-agent
systemctl enable zabbix-agent
```

Installation du Configuration > Hosts > template + group


%title: ZABBIX
%author: xavki

███████╗ █████╗ ██████╗ ██████╗ ██╗██╗ ██╗


╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██║╚██╗██╔╝
███╔╝ ███████║██████╔╝██████╔╝██║ ╚███╔╝
███╔╝ ██╔══██║██╔══██╗██╔══██╗██║ ██╔██╗
███████╗██║ ██║██████╔╝██████╔╝██║██╔╝ ██╗
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═╝

-----------------------------------------------------------------------

# ZABBIX : Agent Passif vs Actif

<br>

Qui a en charge l'envoi de la donnée ??

Passif > serveur zabbix

* accès firewall aux agents

* charge importante sur de large infra

-----------------------------------------------------------------------

# ZABBIX : Agent Passif vs Actif

<br>

Qui a en charge l'envoi de la donnée ??

Actif > agent zabbix

* autorisation FW en sortie pour l'agent

* charge moindre sur le serveur


%title: ZABBIX
%author: xavki

███████╗ █████╗ ██████╗ ██████╗ ██╗██╗ ██╗


╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██║╚██╗██╔╝
███╔╝ ███████║██████╔╝██████╔╝██║ ╚███╔╝
███╔╝ ██╔══██║██╔══██╗██╔══██╗██║ ██╔██╗
███████╗██║ ██║██████╔╝██████╔╝██║██╔╝ ██╗
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═╝

-----------------------------------------------------------------------

# ZABBIX : AutoEnregistrement d'agents

<br>
Action > Autoregistration

<br>

HostMetadata HostMetadataItem
%title: ZABBIX
%author: xavki

███████╗ █████╗ ██████╗ ██████╗ ██╗██╗ ██╗


╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██║╚██╗██╔╝
███╔╝ ███████║██████╔╝██████╔╝██║ ╚███╔╝
███╔╝ ██╔══██║██╔══██╗██╔══██╗██║ ██╔██╗
███████╗██║ ██║██████╔╝██████╔╝██║██╔╝ ██╗
╚══════╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝╚═╝ ╚═╝

# ZABBIX : Première Métrique Perso

-----------------------------------------------------------------------

# ZABBIX : Première Métrique Perso

```
cat /etc/zabbix/zabbix_agentd.d/user_parameter_sleep.conf
UserParameter=xavki.sleep,ps aux | grep [s]leep | wc -l 2>/dev/null
```

```
zabbix_agentd -R userparameter_reload
```

Host > Items > Create

You might also like