4 231
modifications
(→Macro) |
|||
(11 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 2 : | Ligne 2 : | ||
[[Category:debian]] | [[Category:debian]] | ||
[[Category:monitoring]] | [[Category:monitoring]] | ||
Installation et configuration de Zabbix 5.x LTS sous Debian Buster<br> | |||
=Serveur= | =Serveur= | ||
Ligne 48 : | Ligne 51 : | ||
</pre> | </pre> | ||
Relancez les services : | Relancez les services et activez le lancement automatique du serveur zabbix : | ||
<pre> | <pre> | ||
systemctl enable zabbix-server | |||
/etc/init.d/zabbix-server start | /etc/init.d/zabbix-server start | ||
/etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
Ligne 60 : | Ligne 64 : | ||
==Sécurité finale== | ==Sécurité finale== | ||
Après configuration initiale, cela évitera qu'un utilisateur malicieux puisse modifier la configuration du frontend : | Après configuration initiale, cela évitera qu'un utilisateur malicieux puisse modifier la configuration du frontend, ou qu'un utilisateur autre que zabbix ne puisse lire le mot-de-passe de la base de donnée : | ||
<pre> | <pre> | ||
chgrp www-data /etc/zabbix/web/ | chgrp www-data /etc/zabbix/web/ | ||
chown root /etc/zabbix/web/ | chown -R root /etc/zabbix/web/ | ||
chmod -R o-rx /etc/zabbix/web/ | chmod -R o-rx /etc/zabbix/web/ | ||
chmod o-r /etc/zabbix/zabbix_server.conf | chmod o-r /etc/zabbix/zabbix_server.conf | ||
</pre> | </pre> | ||
= | =Agent= | ||
<pre> | <pre> | ||
Ligne 92 : | Ligne 96 : | ||
* Hostname doit correspondre à l'hostname défini dans la configuration zabbix | * Hostname doit correspondre à l'hostname défini dans la configuration zabbix | ||
=sudo | =Détection à distance de l'OS (non obligatoire)= | ||
Installez sudo | |||
Créez le fichier <code>/etc/sudoers.d/zabbix</code> contenant : | |||
<pre> | <pre> | ||
zabbix ALL = (root) NOPASSWD: /usr/bin/nmap | zabbix ALL = (root) NOPASSWD: /usr/bin/nmap | ||
</pre> | </pre> | ||
=IPMI et debian/ubuntu | =Macro= | ||
Zabbix resolves macros according to the following precedence: | |||
* host level macros (checked first) | |||
* macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID | |||
* macros defined for second level templates of the host, sorted by template ID | |||
* macros defined for third level templates of the host, sorted by template ID, etc. | |||
* global macros (checked last) | |||
La première macro évaluée est appliquée. Par exemple, si vous avez un macro host-level, celles du template/global seront ignorés. | |||
Les macro globales sont dans Administration -> General -> Macros. Attention, ces macros globales ne sont pas exportables ! | |||
=bug IPMI et debian/ubuntu= | |||
Il faut rebuild openipmi avec le support openssl | Il faut rebuild openipmi avec le support openssl | ||
https://support.zabbix.com/browse/ZBX-6139 | https://support.zabbix.com/browse/ZBX-6139 |