alliance-boreale/infrastructure/icinga2-ansible-noc/docs/RUNBOOK.md
2026-05-14 08:54:41 -04:00

881 B

Runbook

Premier déploiement

ansible-galaxy collection install -r requirements.yml
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
make bootstrap

Validation

make validate-icinga
make check

Ajouter un hôte

Modifier ansible/group_vars/all.yml :

infrastructure_hosts:
  - name: nouveau-serveur
    address: 192.168.12.99
    groups: [linux]
    checks:
      - name: ping4
        command: hostalive
      - name: ssh
        command: ssh

Puis :

make deploy

Dépannage rapide

sudo systemctl status icinga2 icingadb icingadb-redis mariadb apache2 --no-pager
sudo icinga2 daemon -C
sudo journalctl -u icinga2 -n 100 --no-pager
sudo journalctl -u icingadb -n 100 --no-pager