84 lines
1.8 KiB
Markdown
84 lines
1.8 KiB
Markdown
# icinga2-ansible-noc
|
|
|
|
Dépôt Ansible minimal et reproductible pour déployer un serveur Icinga 2 moderne sur Debian 12, avec :
|
|
|
|
- dépôt officiel Icinga ;
|
|
- Icinga 2 ;
|
|
- Icinga DB + Redis ;
|
|
- MariaDB ;
|
|
- Icinga Web 2 ;
|
|
- module Icinga DB Web ;
|
|
- module Business Process Monitoring (BPM) ;
|
|
- génération de configuration Icinga via rôles Ansible ;
|
|
- commandes Makefile pour bootstrap, validation et déploiement.
|
|
|
|
## Principe
|
|
|
|
Icinga reste l'autorité de supervision technique. Le dépôt ne recode pas ce qu'Icinga sait déjà faire : checks, états, notifications, objets, groupes, templates et vues restent natifs.
|
|
|
|
Ansible sert à produire une installation reproductible et à générer les objets de supervision depuis des variables versionnées.
|
|
|
|
## Préparation
|
|
|
|
```bash
|
|
cp ansible/inventory.example ansible/inventory
|
|
cp ansible/group_vars/all.yml.example ansible/group_vars/all.yml
|
|
$EDITOR ansible/inventory
|
|
$EDITOR ansible/group_vars/all.yml
|
|
```
|
|
|
|
## Commandes
|
|
|
|
```bash
|
|
make ping
|
|
make bootstrap
|
|
make check
|
|
make deploy
|
|
make validate-icinga
|
|
```
|
|
|
|
## URL
|
|
|
|
```text
|
|
http://<serveur>/icingaweb2
|
|
```
|
|
|
|
## Identifiants initiaux
|
|
|
|
Définis dans :
|
|
|
|
```text
|
|
ansible/group_vars/all.yml
|
|
```
|
|
|
|
Variables principales :
|
|
|
|
- `icingaweb_admin_user`
|
|
- `icingaweb_admin_password`
|
|
|
|
## Structure
|
|
|
|
```text
|
|
ansible/
|
|
site.yml
|
|
inventory.example
|
|
group_vars/all.yml.example
|
|
roles/
|
|
common/
|
|
icinga_repo/
|
|
mariadb/
|
|
icinga2/
|
|
icingadb/
|
|
icingaweb2/
|
|
bpm/
|
|
monitoring_config/
|
|
Makefile
|
|
```
|
|
|
|
## Philosophie
|
|
|
|
- Debian 12 vanille comme cible de départ.
|
|
- Official Icinga packages pour rester latest and greatest.
|
|
- Icinga DB au lieu de l'ancien IDO.
|
|
- Configuration générée par Ansible, déposée dans `/etc/icinga2/zones.d/global-templates/chezlepro/`.
|
|
- Validation systématique avec `icinga2 daemon -C`.
|