Compare commits
No commits in common. "master" and "feat/admin-ui-optionnelle" have entirely different histories.
master
...
feat/admin
133 changed files with 10788 additions and 3120 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -5,6 +5,3 @@
|
|||
__pycache__/
|
||||
.ansible/
|
||||
.vscode/
|
||||
|
||||
# Les données vivent hors du dépôt (setops-app.yml : etat.dossier)
|
||||
donnees/
|
||||
|
|
|
|||
82
CHANGELOG.md
82
CHANGELOG.md
|
|
@ -1,87 +1,5 @@
|
|||
# CHANGELOG
|
||||
|
||||
## v1.2.1 — la documentation dit l'application d'aujourd'hui (2026-11-16)
|
||||
|
||||
Aucun changement de code.
|
||||
|
||||
- Les six documents qui décrivaient encore la POC Icinga (architecture, décisions techniques,
|
||||
modèles des sondes et des intrants, plan de démockage, preuve de reproductibilité) passent dans
|
||||
`docs/archive/`, avec leur statut en tête.
|
||||
- `docs/README.md` devient un court index : la vision, les guides (`lifenoc/guides/`), le README,
|
||||
le CHANGELOG, les archives. Il ne dit plus que `domains.yaml` est la source de vérité.
|
||||
- Les restes de la POC quittent l'arbre : `domains.yaml`, ses deux copies et `data/` (25 fichiers
|
||||
d'intrants que rien ne lisait). Ils restent dans l'historique, au commit `a64386d` ; le README
|
||||
dit comment les verser dans la réserve (`git worktree`, puis `make migrer`).
|
||||
|
||||
## v1.2.0 — les saisons, et une note pour les prochaines fois (2026-11-16)
|
||||
|
||||
- **« Chaque année »** (`annuel` + `date: MM-JJ`) : une chose liée au calendrier, comme les pneus
|
||||
d'hiver le 1er décembre ou l'arrosage à vidanger avant le gel. Trois seuils en jours avant la
|
||||
date ; « C'est fait » la tait jusqu'à l'an prochain, sans date à renoter. Rien à répondre au
|
||||
départ : la date suffit. Une date manquée reste en retard une demi-année, puis l'année suivante
|
||||
prend le relais.
|
||||
- **La saison** (`saison: [MM-JJ, MM-JJ]`), en option sur les autres mesures : hors saison,
|
||||
l'élément se tait (« hors saison — reprend le 1er mai ») ; à l'ouverture, ce qui n'a pas été
|
||||
fait depuis devient « à faire », puis le compte avance. Une saison peut passer le Nouvel An.
|
||||
- **Une note pour les prochaines fois** : ce que la personne a appris en le faisant (« filtre
|
||||
16x25x1 »). Après un geste, le bandeau propose d'en écrire une ; elle revient sur la carte
|
||||
(« À savoir »), sur la page de l'élément et dans la supervision, d'une fois à l'autre, jusqu'à
|
||||
ce que la personne la change ou l'efface. Le journal garde chaque version (sur une ligne), et
|
||||
« Annuler » défait la dernière modification.
|
||||
- Le formulaire de configuration prend la date annuelle et la saison ; les guides ont leurs
|
||||
sections « Les saisons » et « Les notes pour les prochaines fois » ; « 1er » devant le premier jour du mois.
|
||||
|
||||
## v1.1.0 — les guides, dans l'application (2026-11-16)
|
||||
|
||||
- **Deux guides**, écrits pour les personnes et non pour le développeur : celui de la personne
|
||||
aidée (l'écran d'accueil du téléphone, les mots, « C'est fait », « Annuler », les étiquettes),
|
||||
à imprimer ; celui de la personne qui configure (premiers pas, choisir, les quatre mesures avec
|
||||
des exemples, régler les seuils, lire la supervision, la réserve, les codes QR, les limites).
|
||||
- **Servis par l'application** : `/aide/`, `/aide/personne-aidee`, et `/p/<id>/aide` en grand
|
||||
avec son retour. Un lien « Aide » dans l'en-tête de la configuration et au pied de l'écran du
|
||||
téléphone.
|
||||
- **De l'aide en contexte** : le formulaire (mesures, seuils, titre), la réserve, la supervision,
|
||||
les codes QR et l'ajout d'une personne mènent chacun à la bonne section du guide.
|
||||
- Une seule source : le Markdown de `lifenoc/guides/`, rendu par un petit convertisseur (titres,
|
||||
listes, gras, code, liens internes ou https seulement). Un test garde que chaque lien d'aide vise
|
||||
une section qui existe, et que chaque lien interne des guides répond.
|
||||
- Les quatre anciens guides (POC Icinga) passent dans `docs/archive/`.
|
||||
|
||||
## v1.0.1 — HTTP/1.1 (2026-11-15)
|
||||
|
||||
- Le serveur répond en HTTP/1.1, plus en HTTP/1.0 (le défaut de la bibliothèque standard). La
|
||||
sonde `app-<nom>` de Set-OPS n'accepte que « HTTP/1.1 <code> » : en production, elle était rouge
|
||||
(« Invalid HTTP response ») alors que l'application servait. Un test le garde.
|
||||
|
||||
## v1.0.0 — deux écrans, sans Icinga (2026-11-15)
|
||||
|
||||
Life-NOC devient une seule petite application Python, sans framework ni base de données, qui
|
||||
sert deux personnes : celle qui est aidée (son téléphone) et celle qui configure (souvent un
|
||||
proche aidant, qui voit sans être notifié).
|
||||
|
||||
- **L'écran de la personne aidée** (`/p/<id>/`) : ce qui est à faire maintenant, en mots et en
|
||||
couleurs, un gros bouton « C'est fait », un bandeau « Noté… Annuler » ; « Tout est fait pour
|
||||
aujourd'hui » et la prochaine chose quand rien n'est dû. Une page par élément, cible des codes QR.
|
||||
- **L'écran de configuration et de supervision** (`/config/`) : les personnes, la supervision
|
||||
par domaine, créer / modifier / retirer un élément par formulaire, puiser dans la réserve, le
|
||||
journal, les étiquettes QR à imprimer (`python3-segno`).
|
||||
- **Jamais noté = vert**, avec « Quand l'avez-vous fait la dernière fois ? » ; le rouge reste au
|
||||
retard et aux données illisibles.
|
||||
- **Un dossier par personne** (`donnees/personnes/<id>/`) et une réserve commune ; données hors de git.
|
||||
- **Une réserve générique livrée** (`lifenoc/reserve-defaut.yaml`, 119 éléments, titres accentués) :
|
||||
vie personnelle, maison, voiture, santé, stocks, résilience, jardin… sans rien de propre à une
|
||||
personne ou à une entreprise. Une `donnees/reserve.yaml` locale la remplace.
|
||||
- Retiré : Icinga 2, MariaDB/IDO, Apache, Icinga Web 2, Business Process, les générateurs de
|
||||
configuration, les sondes Nagios, les rôles Ansible. Le calcul des états, écrit deux fois
|
||||
(`lib/` et `checks/`), n'existe plus qu'à un endroit : `lifenoc/moteur.py`.
|
||||
- Définitions : une mesure et trois seuils par élément (`depuis`, `avant`, `km`, `reste`), au lieu
|
||||
d'une vingtaine de lignes ; `make migrer` verse les 178 de la preuve de concept dans la réserve,
|
||||
sans leurs valeurs (jamais réelles).
|
||||
- Dates au fuseau de la personne (`America/Toronto`), plus en UTC.
|
||||
- Contrat Set-OPS `setops-app.yml` (norme 1, dépendances Debian). Tests : `make tests`.
|
||||
- Changement de sens : un stock suffisant est gris (rien à faire), plus vert.
|
||||
- Pas encore : l'identité (Keycloak pour l'aidant, lien jumelé pour la personne aidée).
|
||||
|
||||
## v0.2
|
||||
|
||||
POC mock-first fonctionnelle.
|
||||
|
|
|
|||
128
Makefile
128
Makefile
|
|
@ -1,49 +1,105 @@
|
|||
SHELL := /bin/bash
|
||||
.DEFAULT_GOAL := aide
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
PYTHON ?= python3
|
||||
DONNEES ?= donnees
|
||||
PORT ?= 8787
|
||||
PERSONNE ?=
|
||||
LIFENOC := LIFENOC_DONNEES=$(DONNEES) $(PYTHON) -m lifenoc
|
||||
PYTHON ?= python3
|
||||
ANSIBLE_PLAYBOOK ?= ansible-playbook
|
||||
INVENTORY ?= ansible/inventory
|
||||
PLAYBOOK ?= ansible/site.yml
|
||||
ARCHIVE ?= life-noc-from-scratch-debian12.zip
|
||||
PROJECT_NAME ?= life-noc
|
||||
|
||||
.PHONY: aide servir personnes etat tout verifier tests migrer
|
||||
GENERATORS := scripts/generate_services.py scripts/generate_bpm.py
|
||||
CHECKS := checks/check_life_noc_mock.sh checks/check_echeance_vie.sh
|
||||
ICINGA_FILES := $(wildcard icinga/commands/*.conf) $(wildcard icinga/hosts/*.conf) $(wildcard icinga/templates/*.conf) $(wildcard icinga/services/*.conf) $(wildcard icinga/servicegroups/*.conf)
|
||||
|
||||
aide:
|
||||
@echo "Life-NOC — voir clair, prioriser juste, agir au bon endroit"
|
||||
.PHONY: help all generate regen services bpm validate validate-yaml validate-python validate-shell validate-generated check mock-ok mock-warning mock-critical clean bootstrap deploy deploy-no-bpm deploy-with-bpm package inventory-example vars-example info
|
||||
|
||||
help:
|
||||
@echo "Life-NOC - cibles disponibles"
|
||||
@echo
|
||||
@echo " make servir les deux écrans sur http://127.0.0.1:$(PORT)/"
|
||||
@echo " (/config/ pour configurer, /p/<id>/ pour le téléphone)"
|
||||
@echo " make personnes les personnes suivies"
|
||||
@echo " make etat PERSONNE=<id> ce qui mérite l'attention, dans le terminal"
|
||||
@echo " make tout PERSONNE=<id> tout, le pas-encore compris"
|
||||
@echo " make verifier relit toutes les données (code 1 si faute)"
|
||||
@echo " make tests les tests (bibliothèque standard seulement)"
|
||||
@echo " make migrer ANCIEN=… verse un ancien Life-NOC (domains.yaml) dans la réserve"
|
||||
@echo " make generate Génère services Icinga + BPM"
|
||||
@echo " make validate Valide YAML, Python, shell et artefacts générés"
|
||||
@echo " make check Génère puis valide"
|
||||
@echo " make bootstrap Déploie la plateforme complète depuis Debian 12 vanille"
|
||||
@echo " make deploy Alias de bootstrap"
|
||||
@echo " make deploy-with-bpm Déploie explicitement avec artefact BPM"
|
||||
@echo " make mock-ok Teste la sonde mock en état OK"
|
||||
@echo " make mock-warning Teste la sonde mock en état WARNING"
|
||||
@echo " make mock-critical Teste la sonde mock en état CRITICAL"
|
||||
@echo " make package Crée une archive zip du dépôt"
|
||||
@echo " make inventory-example Rappelle comment préparer l'inventaire"
|
||||
@echo " make vars-example Rappelle comment préparer les variables"
|
||||
@echo " make info Affiche les variables utiles"
|
||||
@echo
|
||||
@echo " Noter un geste : $(PYTHON) -m lifenoc noter <id> revue/revue-hebdomadaire-priorites fait"
|
||||
@echo " Variables : DONNEES=$(DONNEES) PORT=$(PORT)"
|
||||
@echo "Variables surchargables : INVENTORY=..., PLAYBOOK=..., ARCHIVE=..."
|
||||
|
||||
servir:
|
||||
$(LIFENOC) servir --port $(PORT)
|
||||
all: check
|
||||
regen: generate
|
||||
|
||||
personnes:
|
||||
@$(LIFENOC) personnes
|
||||
generate: services bpm
|
||||
|
||||
etat:
|
||||
@test -n "$(PERSONNE)" || { echo "PERSONNE=<id> requis (make personnes)"; exit 2; }
|
||||
@$(LIFENOC) etat "$(PERSONNE)"
|
||||
services: domains.yaml scripts/generate_services.py
|
||||
$(PYTHON) scripts/generate_services.py
|
||||
|
||||
tout:
|
||||
@test -n "$(PERSONNE)" || { echo "PERSONNE=<id> requis (make personnes)"; exit 2; }
|
||||
@$(LIFENOC) etat --tout "$(PERSONNE)"
|
||||
bpm: domains.yaml scripts/generate_bpm.py
|
||||
$(PYTHON) scripts/generate_bpm.py
|
||||
|
||||
verifier:
|
||||
@$(LIFENOC) verifier
|
||||
validate: validate-yaml validate-python validate-shell validate-generated
|
||||
|
||||
tests:
|
||||
@PYTHONDONTWRITEBYTECODE=1 $(PYTHON) -m unittest discover -s tests
|
||||
validate-yaml: domains.yaml
|
||||
@$(PYTHON) -c 'import yaml, pathlib; p = pathlib.Path("domains.yaml"); data = yaml.safe_load(p.read_text(encoding="utf-8")); assert isinstance(data, dict) and isinstance(data.get("domains"), dict), "domains.yaml invalide: clé racine domains requise"; print("YAML valide: domains.yaml")'
|
||||
|
||||
migrer:
|
||||
@test -n "$(ANCIEN)" || { echo "ANCIEN=<chemin de l'ancien dépôt> requis"; exit 2; }
|
||||
$(LIFENOC) migrer "$(ANCIEN)"
|
||||
validate-python: $(GENERATORS)
|
||||
@$(PYTHON) -m py_compile $(GENERATORS)
|
||||
@echo "Python OK"
|
||||
|
||||
validate-shell: $(CHECKS)
|
||||
@bash -n $(CHECKS)
|
||||
@echo "Shell OK"
|
||||
|
||||
validate-generated: $(ICINGA_FILES) bpm/Life-NOC.conf
|
||||
@grep -R 'check_life_noc_mock' icinga/templates icinga/commands icinga/services >/dev/null
|
||||
@$(PYTHON) -c 'import pathlib; p = pathlib.Path("bpm/Life-NOC.conf"); text = p.read_text(encoding="utf-8"); lines = [l.strip() for l in text.splitlines() if l.strip()]; assert any(l == "### Business Process Config File ###" for l in lines), "bpm/Life-NOC.conf invalide: en-tête BPM absent"; assert any(l.startswith("display 1;") for l in lines), "bpm/Life-NOC.conf invalide: aucun display absent"; print("Artefacts générés valides")'
|
||||
|
||||
check: generate validate
|
||||
|
||||
mock-ok:
|
||||
@bash checks/check_life_noc_mock.sh --state OK --message "Sous contrôle" --item-name "demo" --date "2026-03-13"
|
||||
|
||||
mock-warning:
|
||||
@bash checks/check_life_noc_mock.sh --state WARNING --message "Attention requise" --item-name "demo" --date "2026-03-13"; test $$? -eq 1
|
||||
|
||||
mock-critical:
|
||||
@bash checks/check_life_noc_mock.sh --state CRITICAL --message "Action requise" --item-name "demo" --date "2026-03-13"; test $$? -eq 2
|
||||
|
||||
bootstrap: check
|
||||
$(ANSIBLE_PLAYBOOK) -i $(INVENTORY) $(PLAYBOOK)
|
||||
|
||||
deploy: bootstrap
|
||||
|
||||
deploy-no-bpm: bootstrap
|
||||
|
||||
deploy-with-bpm: check
|
||||
$(ANSIBLE_PLAYBOOK) -i $(INVENTORY) $(PLAYBOOK) -e life_noc_bpm_deploy_enabled=true
|
||||
|
||||
package: check
|
||||
@rm -f $(ARCHIVE)
|
||||
@zip -qr $(ARCHIVE) . -x '*.git*' -x '__pycache__/*' -x '*.pyc' -x '$(ARCHIVE)'
|
||||
@echo "Archive créée: $(ARCHIVE)"
|
||||
|
||||
clean:
|
||||
rm -f $(ARCHIVE) bpm/Life-NOC.conf
|
||||
|
||||
inventory-example:
|
||||
@echo "Copier ansible/inventory.example vers ansible/inventory puis ajuster l'hôte, l'adresse et l'utilisateur ansible."
|
||||
|
||||
vars-example:
|
||||
@echo "Copier ansible/group_vars/all.yml.example vers ansible/group_vars/all.yml puis remplacer TOUS les mots de passe par les tiens."
|
||||
|
||||
info:
|
||||
@echo "PROJECT_NAME=$(PROJECT_NAME)"
|
||||
@echo "PYTHON=$(PYTHON)"
|
||||
@echo "ANSIBLE_PLAYBOOK=$(ANSIBLE_PLAYBOOK)"
|
||||
@echo "INVENTORY=$(INVENTORY)"
|
||||
@echo "PLAYBOOK=$(PLAYBOOK)"
|
||||
@echo "ARCHIVE=$(ARCHIVE)"
|
||||
|
|
|
|||
246
README.md
246
README.md
|
|
@ -1,130 +1,182 @@
|
|||
# Life-NOC
|
||||
|
||||
**Voir clair, prioriser juste, agir au bon endroit.**
|
||||
Life-NOC applique la logique d'un centre d'opérations (NOC) à la vie quotidienne.
|
||||
|
||||
Life-NOC applique la logique d'un centre d'opérations à la vie quotidienne. Il sort de la tête ce
|
||||
qui revient et qu'on ne doit pas oublier — une revue, un pilulier, un entretien, une échéance, un
|
||||
stock — et montre, au bon moment, ce qui mérite une action. Il n'agit jamais à la place de la
|
||||
personne : « une machine qui aide à ne pas perdre le fil ». Voir `docs/vision/`.
|
||||
Le but du projet est de transformer la charge mentale invisible en état observable, afin de savoir rapidement ce qui est sous contrôle, ce qui approche d'une échéance et ce qui mérite de l'attention.
|
||||
|
||||
Il sert une personne qui a du mal à tout garder en tête (un TDA, par exemple), et les gens qui
|
||||
accompagnent une personne semi-autonome (un parent âgé et sa famille).
|
||||
## Cible de ce dépôt
|
||||
|
||||
## Deux écrans, deux personnes
|
||||
Cette version vise désormais explicitement le scénario suivant :
|
||||
|
||||
| | La personne aidée | La personne qui configure |
|
||||
|---|---|---|
|
||||
| Où | le petit écran de son téléphone : `/p/<id>/` | un ordinateur : `/config/` |
|
||||
| Ce qu'elle voit | ce qui est à faire maintenant, en mots ; « Tout est fait pour aujourd'hui » sinon | tout, par domaine, avec la mécanique : seuils, dernières valeurs, journal |
|
||||
| Ce qu'elle fait | « C'est fait », noter une valeur, « Annuler » | créer et régler les éléments, puiser dans la réserve, imprimer les codes QR |
|
||||
> **Debian 12 vanille + utilisateur `ansible` + clé SSH = plateforme Life-NOC complète**
|
||||
|
||||
Chacune a son guide, à un toucher de l'écran (lien « Aide ») : `lifenoc/guides/personne-aidee.md`
|
||||
(à imprimer pour elle) et `lifenoc/guides/personne-qui-configure.md`. Un seul texte, lu sur la forge
|
||||
comme dans l'application.
|
||||
Le dépôt automatise :
|
||||
|
||||
Les deux rôles peuvent revenir à la même personne : le dimanche, l'esprit clair, on configure
|
||||
pour soi de la semaine. La personne qui configure **voit seulement** : aucune notification ne part.
|
||||
- l'ajout du dépôt officiel Icinga
|
||||
- l'installation de MariaDB
|
||||
- l'installation d'Icinga 2
|
||||
- l'installation et la configuration d'IDO MySQL
|
||||
- l'installation d'Apache et d'Icinga Web 2
|
||||
- l'installation du module Business Process
|
||||
- le déploiement de Life-NOC
|
||||
- la génération des services Icinga et de l'artefact BPM
|
||||
|
||||
### Le premier niveau, puis le second
|
||||
## État fonctionnel
|
||||
|
||||
Comme dans un centre d'opérations : la personne aidée agit (premier niveau) ; le proche aidant
|
||||
regarde la supervision et n'intervient que si le premier niveau n'a pas suffi (second niveau).
|
||||
La modélisation métier reste **mock-first** :
|
||||
|
||||
## Les quatre états
|
||||
- les domaines et éléments de vie sont décrits dans `domains.yaml`
|
||||
- les services Icinga sont générés automatiquement
|
||||
- les sondes sont **mockées** par défaut
|
||||
- l'état par défaut est **OK**
|
||||
|
||||
| Couleur | Mot (écran de la personne aidée) | Sens |
|
||||
|---|---|---|
|
||||
| gris | Pas encore | pas encore dû — l'écran le tait |
|
||||
| vert | À faire | c'est le bon moment ; ou jamais noté : « Quand l'avez-vous fait la dernière fois ? » |
|
||||
| orange | À faire vite | il faut presser |
|
||||
| rouge | En retard | en retard, ou donnée illisible |
|
||||
Autrement dit, la POC valide :
|
||||
|
||||
## Les mesures
|
||||
- le modèle déclaratif
|
||||
- la génération des artefacts
|
||||
- le bootstrap complet de la plateforme
|
||||
- le déploiement automatisé par Ansible
|
||||
- l'affichage Icinga Web 2
|
||||
- l'évolution future vers de vraies sondes
|
||||
|
||||
Une mesure par élément, trois seuils `[à faire, pressé, en retard]` :
|
||||
## Structure du dépôt
|
||||
|
||||
| Mesure | Dans l'écran de configuration | Exemple |
|
||||
|---|---|---|
|
||||
| `depuis` | Revient régulièrement | `[5, 7, 10]` jours depuis la dernière fois |
|
||||
| `avant` | Échéance | `[60, 30, 7]` jours avant l'échéance notée |
|
||||
| `km` | Kilométrage | `[7000, 8000, 9000]` km depuis le dernier entretien |
|
||||
| `reste` | Quantité qui reste | `[60, 50, 25]` avec une unité (`%`, `litres`, `V`…) |
|
||||
| `annuel` | Chaque année | `[30, 14, 0]` jours avant `date: "12-01"`, chaque année ; « C'est fait » le tait jusqu'à l'an prochain |
|
||||
```text
|
||||
life-noc/
|
||||
├── ansible/
|
||||
│ ├── group_vars/
|
||||
│ ├── inventory.example
|
||||
│ ├── roles/
|
||||
│ │ ├── base/
|
||||
│ │ ├── mariadb/
|
||||
│ │ ├── icinga2/
|
||||
│ │ ├── icingaweb2/
|
||||
│ │ ├── businessprocess/
|
||||
│ │ └── life_noc/
|
||||
│ ├── deploy_life_noc.yml
|
||||
│ └── site.yml
|
||||
├── bpm/
|
||||
├── checks/
|
||||
├── docs/
|
||||
├── icinga/
|
||||
│ ├── commands/
|
||||
│ ├── hosts/
|
||||
│ ├── services/
|
||||
│ └── templates/
|
||||
├── scripts/
|
||||
├── domains.yaml
|
||||
├── Makefile
|
||||
└── ansible.cfg
|
||||
```
|
||||
|
||||
Une `saison: ["05-01", "09-30"]` (facultative, pas pour `annuel`) fait taire l'élément hors de la
|
||||
période ; à l'ouverture, ce qui n'a pas été fait depuis devient « à faire ». Elle peut passer le
|
||||
Nouvel An (`["11-01", "04-30"]`).
|
||||
## Source of truth
|
||||
|
||||
La personne aidée peut garder **une note pour les prochaines fois** (« filtre 16x25x1 ») : elle
|
||||
revient sur la carte et en supervision chaque fois, jusqu'à ce qu'elle la change ; le journal garde
|
||||
chaque version.
|
||||
Le fichier central est :
|
||||
|
||||
## Démarrer
|
||||
- `domains.yaml`
|
||||
|
||||
Debian 13, `python3`, `python3-yaml` ; `python3-segno` pour les codes QR. Rien d'autre.
|
||||
Chaque entrée décrit un élément Life-NOC avec :
|
||||
|
||||
- `name` : identifiant lisible
|
||||
- `date` : métadonnée d'échéance ou de repère
|
||||
- `notes` : contexte humain
|
||||
- `mock_state` : état simulé (`OK`, `WARNING`, `CRITICAL`) — optionnel
|
||||
- `mock_message` : message simulé — optionnel
|
||||
|
||||
Par défaut :
|
||||
|
||||
- `mock_state = OK`
|
||||
- `mock_message = Sous contrôle`
|
||||
|
||||
## Déploiement from scratch
|
||||
|
||||
Depuis la machine de contrôle Debian 12 :
|
||||
|
||||
```bash
|
||||
make servir # http://127.0.0.1:8787/
|
||||
cp ansible/inventory.example ansible/inventory
|
||||
cp ansible/group_vars/all.yml.example ansible/group_vars/all.yml
|
||||
```
|
||||
|
||||
1. Ouvrir `/config/`, ajouter une personne.
|
||||
2. **Commencer petit** : « Puiser dans la réserve » une dizaine d'éléments, ou en créer.
|
||||
3. Ouvrir `/p/<id>/` sur le téléphone de la personne, l'ajouter à son écran d'accueil.
|
||||
4. « Codes QR » : imprimer, coller chaque étiquette là où la chose se fait (la génératrice, le
|
||||
pilulier, la voiture). Le code ouvre la page de l'élément ; un toucher, c'est noté.
|
||||
5. Au bout d'un mois, retirer ce qui n'a jamais servi : c'est du bruit.
|
||||
Modifier ensuite :
|
||||
|
||||
## Les données
|
||||
- l'hôte cible dans `ansible/inventory`
|
||||
- les mots de passe dans `ansible/group_vars/all.yml`
|
||||
|
||||
Des fichiers texte, hors de git, dans `donnees/` (ou `$LIFENOC_DONNEES`) :
|
||||
|
||||
```
|
||||
donnees/
|
||||
reserve.yaml des éléments prêts à l'emploi (absente : la réserve générique
|
||||
livrée, lifenoc/reserve-defaut.yaml, 119 éléments)
|
||||
personnes/<id>/
|
||||
personne.yaml {nom: …}
|
||||
elements.yaml ce qui est suivi (l'écran de configuration l'écrit ; la main aussi)
|
||||
intrants.yaml la dernière valeur de chaque élément
|
||||
journal.tsv chaque geste, une ligne, jamais réécrit
|
||||
```
|
||||
|
||||
Relus à chaque page : une modification à la main ne demande aucun redémarrage. Le fuseau des
|
||||
dates vient de `$LIFENOC_FUSEAU` (défaut `America/Toronto`).
|
||||
|
||||
## Sans navigateur
|
||||
Puis lancer :
|
||||
|
||||
```bash
|
||||
make personnes
|
||||
make etat PERSONNE=daniel # ce qui mérite l'attention
|
||||
python3 -m lifenoc noter daniel revue/revue-hebdomadaire-priorites fait
|
||||
make verifier # relit toutes les données (code 1 si faute)
|
||||
make tests
|
||||
make bootstrap
|
||||
```
|
||||
|
||||
API : `GET /api/<id>/etats` ; `POST /api/<id>/element/<domaine>/<élément>` avec
|
||||
`{"geste": "valeur", "saisie": "42", "par": "capteur"}` — pour une sonde ou un capteur.
|
||||
|
||||
## Sécurité
|
||||
|
||||
L'application n'a pas d'authentification : elle écoute en `127.0.0.1`, et c'est ce qui la sert
|
||||
(nginx, le frontal de Set-OPS, un tunnel) qui décide qui la joint. Les identités (le proche
|
||||
aidant par Keycloak, la personne aidée par un lien jumelé à son téléphone) sont la prochaine étape.
|
||||
|
||||
## Dans un locataire Set-OPS
|
||||
|
||||
`setops-app.yml` est le contrat : `execution: python`, dépendances Debian, les données dans
|
||||
`donnees/`. Set-OPS la déploie à une étiquette `vX.Y.Z`, la sauvegarde et la supervise par `/sante`.
|
||||
|
||||
## Depuis l'ancien Life-NOC (Icinga)
|
||||
|
||||
Son `domains.yaml` (178 définitions) et ses intrants (`data/`) ne sont plus dans l'arbre : ils
|
||||
vivent dans l'historique, au dernier commit de la POC, `a64386d`.
|
||||
ou :
|
||||
|
||||
```bash
|
||||
git worktree add /tmp/life-noc-poc a64386d
|
||||
make migrer ANCIEN=/tmp/life-noc-poc # verse les définitions dans la réserve
|
||||
git worktree remove /tmp/life-noc-poc
|
||||
ansible-playbook -i ansible/inventory ansible/site.yml
|
||||
```
|
||||
|
||||
Les anciennes valeurs ne sont pas reprises : elles n'ont jamais été réelles.
|
||||
## Génération locale
|
||||
|
||||
### Générer les services Icinga
|
||||
|
||||
```bash
|
||||
python3 scripts/generate_services.py
|
||||
```
|
||||
|
||||
### Générer l'artefact BPM
|
||||
|
||||
```bash
|
||||
python3 scripts/generate_bpm.py
|
||||
```
|
||||
|
||||
## Makefile
|
||||
|
||||
Le dépôt fournit un `Makefile` pour les gestes courants.
|
||||
|
||||
Exemples :
|
||||
|
||||
```bash
|
||||
make generate
|
||||
make validate
|
||||
make check
|
||||
make bootstrap
|
||||
make deploy-with-bpm
|
||||
make package
|
||||
```
|
||||
|
||||
Pour la liste complète :
|
||||
|
||||
```bash
|
||||
make help
|
||||
```
|
||||
|
||||
## Accès web attendus
|
||||
|
||||
Une fois le playbook terminé, les chemins utiles sont typiquement :
|
||||
|
||||
```text
|
||||
/icingaweb2
|
||||
/icingaweb2/monitoring/host/show?host=life-noc
|
||||
/icingaweb2/monitoring/list/services?host_name=life-noc
|
||||
```
|
||||
|
||||
## Documentation complémentaire
|
||||
|
||||
- `docs/concept.md`
|
||||
- `docs/architecture.md`
|
||||
- `docs/deploiement-from-scratch.md`
|
||||
|
||||
## Philosophie de cette POC
|
||||
|
||||
Cette POC ne prétend pas encore mesurer le réel.
|
||||
|
||||
Elle sert à construire proprement :
|
||||
|
||||
- l'ossature du système
|
||||
- la hiérarchie des domaines
|
||||
- les conventions de nommage
|
||||
- la chaîne de génération
|
||||
- le bootstrap serveur
|
||||
- le déploiement
|
||||
- l'intégration Icinga Web 2
|
||||
|
||||
Les vraies sondes viendront plus tard, en remplacement progressif des mocks.
|
||||
|
|
|
|||
9
ansible.cfg
Normal file
9
ansible.cfg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[defaults]
|
||||
inventory = ansible/inventory
|
||||
host_key_checking = False
|
||||
retry_files_enabled = False
|
||||
interpreter_python = auto_silent
|
||||
stdout_callback = yaml
|
||||
|
||||
[ssh_connection]
|
||||
pipelining = True
|
||||
1
ansible/deploy_life_noc.yml
Normal file
1
ansible/deploy_life_noc.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
- import_playbook: site.yml
|
||||
22
ansible/group_vars/all.yml
Normal file
22
ansible/group_vars/all.yml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
life_noc_fqdn: c7-life-noc-01
|
||||
life_noc_admin_ui_enabled: true
|
||||
life_noc_admin_user: icingadmin
|
||||
life_noc_admin_password: l1f3_N0C_ADM
|
||||
|
||||
life_noc_db_root_socket: /run/mysqld/mysqld.sock
|
||||
|
||||
life_noc_db_icinga_name: icinga
|
||||
life_noc_db_icinga_user: icinga
|
||||
life_noc_db_icinga_password: l1f3_N0C_DB
|
||||
|
||||
life_noc_db_web_name: icingaweb2
|
||||
life_noc_db_web_user: icingaweb2
|
||||
life_noc_db_web_password: l1f3_N0C_WEB_DB
|
||||
|
||||
life_noc_icinga_repo_enabled: true
|
||||
life_noc_icinga_repo_distribution: icinga-bookworm
|
||||
life_noc_icinga_keyring_deb_url: https://packages.icinga.com/icinga-archive-keyring_latest+debian12.deb
|
||||
|
||||
life_noc_businessprocess_enabled: true
|
||||
life_noc_businessprocess_version: v2.5.2
|
||||
life_noc_businessprocess_repo: https://github.com/Icinga/icingaweb2-module-businessprocess.git
|
||||
21
ansible/group_vars/all.yml.example
Normal file
21
ansible/group_vars/all.yml.example
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
life_noc_fqdn: c7-life-noc-01
|
||||
life_noc_admin_user: icingadmin
|
||||
life_noc_admin_password: CHANGE_ME_NOW
|
||||
|
||||
life_noc_db_root_socket: /run/mysqld/mysqld.sock
|
||||
|
||||
life_noc_db_icinga_name: icinga
|
||||
life_noc_db_icinga_user: icinga
|
||||
life_noc_db_icinga_password: CHANGE_ME_ICINGA_DB
|
||||
|
||||
life_noc_db_web_name: icingaweb2
|
||||
life_noc_db_web_user: icingaweb2
|
||||
life_noc_db_web_password: CHANGE_ME_WEB_DB
|
||||
|
||||
life_noc_icinga_repo_enabled: true
|
||||
life_noc_icinga_repo_distribution: icinga-bookworm
|
||||
life_noc_icinga_keyring_deb_url: https://packages.icinga.com/icinga-archive-keyring_latest+debian12.deb
|
||||
|
||||
life_noc_businessprocess_enabled: true
|
||||
life_noc_businessprocess_version: v2.5.2
|
||||
life_noc_businessprocess_repo: https://github.com/Icinga/icingaweb2-module-businessprocess.git
|
||||
2
ansible/inventory
Normal file
2
ansible/inventory
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[icinga]
|
||||
c7-life-noc-01 ansible_host=192.168.12.40 ansible_user=ansible
|
||||
2
ansible/inventory.example
Normal file
2
ansible/inventory.example
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[icinga]
|
||||
life-noc-01 ansible_host=192.0.2.10 ansible_user=ansible
|
||||
3
ansible/roles/base/defaults/main.yml
Normal file
3
ansible/roles/base/defaults/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
life_noc_icinga_repo_enabled: true
|
||||
life_noc_icinga_repo_distribution: icinga-bookworm
|
||||
life_noc_icinga_keyring_deb_url: https://packages.icinga.com/icinga-archive-keyring_latest+debian12.deb
|
||||
67
ansible/roles/base/tasks/main.yml
Normal file
67
ansible/roles/base/tasks/main.yml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
- name: install base prerequisites
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- git
|
||||
- gnupg
|
||||
- python3
|
||||
- python3-yaml
|
||||
- unzip
|
||||
- wget
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: download icinga archive keyring package
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ life_noc_icinga_keyring_deb_url }}"
|
||||
dest: /tmp/icinga-archive-keyring.deb
|
||||
mode: "0644"
|
||||
when: life_noc_icinga_repo_enabled | bool
|
||||
|
||||
- name: install icinga archive keyring package
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/icinga-archive-keyring.deb
|
||||
state: present
|
||||
when: life_noc_icinga_repo_enabled | bool
|
||||
|
||||
- name: verify icinga keyring exists
|
||||
ansible.builtin.stat:
|
||||
path: /usr/share/keyrings/icinga-archive-keyring.gpg
|
||||
register: icinga_keyring_file
|
||||
|
||||
- name: fail if icinga keyring is missing
|
||||
ansible.builtin.fail:
|
||||
msg: "La keyring Icinga /usr/share/keyrings/icinga-archive-keyring.gpg est absente après installation."
|
||||
when: not icinga_keyring_file.stat.exists
|
||||
|
||||
- name: configure official icinga apt repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian {{ life_noc_icinga_repo_distribution }} main"
|
||||
filename: icinga
|
||||
state: present
|
||||
update_cache: false
|
||||
when: life_noc_icinga_repo_enabled | bool
|
||||
|
||||
- name: configure official icinga apt source repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb-src [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/debian {{ life_noc_icinga_repo_distribution }} main"
|
||||
filename: icinga
|
||||
state: present
|
||||
update_cache: false
|
||||
when: life_noc_icinga_repo_enabled | bool
|
||||
|
||||
- name: verify icinga repository file exists
|
||||
ansible.builtin.stat:
|
||||
path: /etc/apt/sources.list.d/icinga.list
|
||||
register: icinga_repo_file
|
||||
|
||||
- name: fail if icinga repository file is missing
|
||||
ansible.builtin.fail:
|
||||
msg: "Le fichier /etc/apt/sources.list.d/icinga.list est absent."
|
||||
when: not icinga_repo_file.stat.exists
|
||||
|
||||
- name: update apt cache after icinga repository configuration
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
4
ansible/roles/businessprocess/defaults/main.yml
Normal file
4
ansible/roles/businessprocess/defaults/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
life_noc_businessprocess_enabled: true
|
||||
life_noc_businessprocess_version: v2.5.2
|
||||
life_noc_businessprocess_repo: https://github.com/Icinga/icingaweb2-module-businessprocess.git
|
||||
life_noc_businessprocess_module_dir: /usr/share/icingaweb2/modules/businessprocess
|
||||
4
ansible/roles/businessprocess/handlers/main.yml
Normal file
4
ansible/roles/businessprocess/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- name: restart apache2
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
36
ansible/roles/businessprocess/tasks/main.yml
Normal file
36
ansible/roles/businessprocess/tasks/main.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
- name: install icinga web php libraries required by businessprocess
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- icinga-php-library
|
||||
- icinga-php-thirdparty
|
||||
state: present
|
||||
update_cache: true
|
||||
when: life_noc_businessprocess_enabled | bool
|
||||
|
||||
- name: install businessprocess module from git
|
||||
ansible.builtin.git:
|
||||
repo: "{{ life_noc_businessprocess_repo }}"
|
||||
dest: "{{ life_noc_businessprocess_module_dir }}"
|
||||
version: "{{ life_noc_businessprocess_version }}"
|
||||
force: true
|
||||
when: life_noc_businessprocess_enabled | bool
|
||||
notify: restart apache2
|
||||
|
||||
- name: ensure businessprocess config directories exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: icingaweb2
|
||||
mode: "2770"
|
||||
loop:
|
||||
- /etc/icingaweb2/modules/businessprocess
|
||||
- /etc/icingaweb2/modules/businessprocess/processes
|
||||
when: life_noc_businessprocess_enabled | bool
|
||||
|
||||
- name: enable businessprocess module
|
||||
ansible.builtin.command: icingacli module enable businessprocess
|
||||
args:
|
||||
creates: /etc/icingaweb2/enabledModules/businessprocess
|
||||
when: life_noc_businessprocess_enabled | bool
|
||||
notify: restart apache2
|
||||
6
ansible/roles/icinga2/defaults/main.yml
Normal file
6
ansible/roles/icinga2/defaults/main.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
life_noc_db_root_socket: /run/mysqld/mysqld.sock
|
||||
life_noc_db_icinga_name: icinga
|
||||
life_noc_db_icinga_user: icinga
|
||||
life_noc_db_icinga_password: icinga-change-me
|
||||
life_noc_icinga_ido_host: 127.0.0.1
|
||||
life_noc_icinga_ido_port: 3306
|
||||
7
ansible/roles/icinga2/handlers/main.yml
Normal file
7
ansible/roles/icinga2/handlers/main.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
- name: restart icinga2
|
||||
ansible.builtin.service:
|
||||
name: icinga2
|
||||
state: restarted
|
||||
|
||||
- name: validate icinga2
|
||||
ansible.builtin.command: icinga2 daemon -C
|
||||
63
ansible/roles/icinga2/tasks/main.yml
Normal file
63
ansible/roles/icinga2/tasks/main.yml
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
- name: install icinga2 packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- icinga2
|
||||
- icinga2-ido-mysql
|
||||
- monitoring-plugins-basic
|
||||
- monitoring-plugins-common
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: ensure icinga database exists
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "CREATE DATABASE IF NOT EXISTS {{ life_noc_db_icinga_name }} CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
|
||||
changed_when: false
|
||||
|
||||
- name: ensure icinga database user exists and has grants
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "GRANT ALTER, CREATE, SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON {{ life_noc_db_icinga_name }}.* TO '{{ life_noc_db_icinga_user }}'@'localhost' IDENTIFIED BY '{{ life_noc_db_icinga_password }}'; FLUSH PRIVILEGES;"
|
||||
changed_when: false
|
||||
|
||||
- name: check whether icinga ido schema is already imported
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='{{ life_noc_db_icinga_name }}' AND table_name='icinga_programstatus';"
|
||||
register: life_noc_icinga_schema_check
|
||||
changed_when: false
|
||||
|
||||
- name: import icinga ido schema
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} {{ life_noc_db_icinga_name }} < /usr/share/icinga2-ido-mysql/schema/mysql.sql
|
||||
when: life_noc_icinga_schema_check.stdout | trim == '0'
|
||||
|
||||
- name: install ido mysql feature configuration
|
||||
ansible.builtin.template:
|
||||
src: ido-mysql.conf.j2
|
||||
dest: /etc/icinga2/features-available/ido-mysql.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify:
|
||||
- validate icinga2
|
||||
- restart icinga2
|
||||
|
||||
- name: enable ido-mysql feature
|
||||
ansible.builtin.command: icinga2 feature enable ido-mysql
|
||||
args:
|
||||
creates: /etc/icinga2/features-enabled/ido-mysql.conf
|
||||
notify:
|
||||
- validate icinga2
|
||||
- restart icinga2
|
||||
|
||||
- name: enable command feature
|
||||
ansible.builtin.command: icinga2 feature enable command
|
||||
args:
|
||||
creates: /etc/icinga2/features-enabled/command.conf
|
||||
notify:
|
||||
- validate icinga2
|
||||
- restart icinga2
|
||||
|
||||
- name: enable and start icinga2
|
||||
ansible.builtin.service:
|
||||
name: icinga2
|
||||
enabled: true
|
||||
state: started
|
||||
13
ansible/roles/icinga2/templates/ido-mysql.conf.j2
Normal file
13
ansible/roles/icinga2/templates/ido-mysql.conf.j2
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* Managed by Ansible (Life-NOC)
|
||||
*/
|
||||
library "db_ido_mysql"
|
||||
|
||||
object IdoMysqlConnection "ido-mysql" {
|
||||
user = "{{ life_noc_db_icinga_user }}"
|
||||
password = "{{ life_noc_db_icinga_password }}"
|
||||
host = "{{ life_noc_icinga_ido_host }}"
|
||||
port = {{ life_noc_icinga_ido_port }}
|
||||
database = "{{ life_noc_db_icinga_name }}"
|
||||
enable_ha = false
|
||||
}
|
||||
11
ansible/roles/icingaweb2/defaults/main.yml
Normal file
11
ansible/roles/icingaweb2/defaults/main.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
life_noc_db_root_socket: /run/mysqld/mysqld.sock
|
||||
life_noc_db_web_name: icingaweb2
|
||||
life_noc_db_web_user: icingaweb2
|
||||
life_noc_db_web_password: icingaweb2-change-me
|
||||
life_noc_db_icinga_name: icinga
|
||||
life_noc_db_icinga_user: icinga
|
||||
life_noc_db_icinga_password: icinga-change-me
|
||||
life_noc_admin_user: icingadmin
|
||||
life_noc_admin_password: CHANGE_ME_NOW
|
||||
life_noc_fqdn: localhost
|
||||
life_noc_icinga2_command_pipe: /var/run/icinga2/cmd/icinga2.cmd
|
||||
4
ansible/roles/icingaweb2/handlers/main.yml
Normal file
4
ansible/roles/icingaweb2/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- name: restart apache2
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
121
ansible/roles/icingaweb2/tasks/main.yml
Normal file
121
ansible/roles/icingaweb2/tasks/main.yml
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
- name: install icinga web and apache packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- apache2
|
||||
- icingaweb2
|
||||
- libapache2-mod-php8.2
|
||||
- php8.2-curl
|
||||
- php8.2-gd
|
||||
- php8.2-intl
|
||||
- php8.2-mbstring
|
||||
- php8.2-mysql
|
||||
- php8.2-xml
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: ensure apache2 is enabled and started
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: add web and monitoring users to icingaweb2 group
|
||||
ansible.builtin.user:
|
||||
name: "{{ item }}"
|
||||
groups: icingaweb2
|
||||
append: true
|
||||
loop:
|
||||
- www-data
|
||||
- nagios
|
||||
|
||||
- name: ensure icingaweb2 database exists
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "CREATE DATABASE IF NOT EXISTS {{ life_noc_db_web_name }} CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;"
|
||||
changed_when: false
|
||||
|
||||
- name: ensure icingaweb2 database user exists and has grants
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "GRANT SELECT, INSERT, UPDATE, DELETE, DROP, CREATE VIEW, INDEX, EXECUTE ON {{ life_noc_db_web_name }}.* TO '{{ life_noc_db_web_user }}'@'localhost' IDENTIFIED BY '{{ life_noc_db_web_password }}'; FLUSH PRIVILEGES;"
|
||||
changed_when: false
|
||||
|
||||
- name: check whether icingaweb2 schema is already imported
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} -Nse "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='{{ life_noc_db_web_name }}' AND table_name='icingaweb_user';"
|
||||
register: life_noc_web_schema_check
|
||||
changed_when: false
|
||||
|
||||
- name: import icingaweb2 schema
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} {{ life_noc_db_web_name }} < /usr/share/icingaweb2/schema/mysql.schema.sql
|
||||
args:
|
||||
executable: /bin/bash
|
||||
when: life_noc_web_schema_check.stdout | trim == '0'
|
||||
|
||||
- name: generate icingaweb2 admin password hash
|
||||
ansible.builtin.command: >-
|
||||
php -r 'echo password_hash(getenv("LIFE_NOC_ADMIN_PASSWORD"), PASSWORD_DEFAULT);'
|
||||
environment:
|
||||
LIFE_NOC_ADMIN_PASSWORD: "{{ life_noc_admin_password }}"
|
||||
register: life_noc_admin_password_hash
|
||||
changed_when: false
|
||||
no_log: true
|
||||
|
||||
- name: ensure icingaweb2 admin user exists with expected password
|
||||
ansible.builtin.shell: |
|
||||
mysql --socket={{ life_noc_db_root_socket }} {{ life_noc_db_web_name }} <<'SQL'
|
||||
INSERT INTO icingaweb_user (name, active, password_hash)
|
||||
VALUES ('{{ life_noc_admin_user }}', 1, '{{ life_noc_admin_password_hash.stdout }}')
|
||||
ON DUPLICATE KEY UPDATE
|
||||
active = VALUES(active),
|
||||
password_hash = VALUES(password_hash);
|
||||
SQL
|
||||
no_log: true
|
||||
|
||||
- name: ensure icingaweb2 config directories exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: icingaweb2
|
||||
mode: "{{ item.mode }}"
|
||||
loop:
|
||||
- { path: '/etc/icingaweb2', mode: '2770' }
|
||||
- { path: '/etc/icingaweb2/enabledModules', mode: '2770' }
|
||||
- { path: '/etc/icingaweb2/modules', mode: '2770' }
|
||||
- { path: '/etc/icingaweb2/modules/monitoring', mode: '2770' }
|
||||
- { path: '/etc/icingaweb2/preferences', mode: '2770' }
|
||||
|
||||
- name: deploy icingaweb2 core configuration
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: icingaweb2
|
||||
mode: "0660"
|
||||
loop:
|
||||
- { src: 'config.ini.j2', dest: '/etc/icingaweb2/config.ini' }
|
||||
- { src: 'resources.ini.j2', dest: '/etc/icingaweb2/resources.ini' }
|
||||
- { src: 'authentication.ini.j2', dest: '/etc/icingaweb2/authentication.ini' }
|
||||
- { src: 'roles.ini.j2', dest: '/etc/icingaweb2/roles.ini' }
|
||||
notify: restart apache2
|
||||
|
||||
- name: deploy monitoring module configuration
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: icingaweb2
|
||||
mode: "0660"
|
||||
loop:
|
||||
- { src: 'backends.ini.j2', dest: '/etc/icingaweb2/modules/monitoring/backends.ini' }
|
||||
- { src: 'commandtransports.ini.j2', dest: '/etc/icingaweb2/modules/monitoring/commandtransports.ini' }
|
||||
notify: restart apache2
|
||||
|
||||
- name: enable icingaweb2 modules
|
||||
ansible.builtin.command: "icingacli module enable {{ item }}"
|
||||
args:
|
||||
creates: "/etc/icingaweb2/enabledModules/{{ item }}"
|
||||
loop:
|
||||
- monitoring
|
||||
- doc
|
||||
notify: restart apache2
|
||||
3
ansible/roles/icingaweb2/templates/authentication.ini.j2
Normal file
3
ansible/roles/icingaweb2/templates/authentication.ini.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[icingaweb2]
|
||||
backend = "db"
|
||||
resource = "icingaweb2"
|
||||
3
ansible/roles/icingaweb2/templates/backends.ini.j2
Normal file
3
ansible/roles/icingaweb2/templates/backends.ini.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[icinga2_ido_mysql]
|
||||
type = "ido"
|
||||
resource = "icinga2_ido_mysql"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[icinga2]
|
||||
transport = "local"
|
||||
path = "/run/icinga2/cmd/icinga2.cmd"
|
||||
11
ansible/roles/icingaweb2/templates/config.ini.j2
Normal file
11
ansible/roles/icingaweb2/templates/config.ini.j2
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[global]
|
||||
show_stacktraces = "0"
|
||||
config_backend = "db"
|
||||
config_resource = "icingaweb2"
|
||||
|
||||
[logging]
|
||||
log = "syslog"
|
||||
level = "ERROR"
|
||||
|
||||
[themes]
|
||||
default = "Icinga"
|
||||
21
ansible/roles/icingaweb2/templates/resources.ini.j2
Normal file
21
ansible/roles/icingaweb2/templates/resources.ini.j2
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[icingaweb2]
|
||||
type = "db"
|
||||
db = "mysql"
|
||||
host = "localhost"
|
||||
port = "3306"
|
||||
dbname = "{{ life_noc_db_web_name }}"
|
||||
username = "{{ life_noc_db_web_user }}"
|
||||
password = "{{ life_noc_db_web_password }}"
|
||||
charset = "utf8mb4"
|
||||
use_ssl = "0"
|
||||
|
||||
[icinga2_ido_mysql]
|
||||
type = "db"
|
||||
db = "mysql"
|
||||
host = "localhost"
|
||||
port = "3306"
|
||||
dbname = "{{ life_noc_db_icinga_name }}"
|
||||
username = "{{ life_noc_db_icinga_user }}"
|
||||
password = "{{ life_noc_db_icinga_password }}"
|
||||
charset = "latin1"
|
||||
use_ssl = "0"
|
||||
3
ansible/roles/icingaweb2/templates/roles.ini.j2
Normal file
3
ansible/roles/icingaweb2/templates/roles.ini.j2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[administrators]
|
||||
users = "{{ life_noc_admin_user }}"
|
||||
permissions = "*"
|
||||
12
ansible/roles/life_noc/defaults/main.yml
Normal file
12
ansible/roles/life_noc/defaults/main.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
life_noc_project_root: /opt/life-noc
|
||||
life_noc_icinga_conf_root: /etc/icinga2/conf.d/life-noc
|
||||
life_noc_plugin_dir: /usr/lib/nagios/plugins
|
||||
life_noc_validate_icinga: true
|
||||
life_noc_reload_icinga: true
|
||||
life_noc_bpm_deploy_enabled: false
|
||||
life_noc_bpm_destination_dir: /etc/icingaweb2/modules/businessprocess/processes
|
||||
life_noc_bpm_target_file: /etc/icingaweb2/modules/businessprocess/processes/Life-NOC.conf
|
||||
life_noc_public_base_url: "http://{{ ansible_host | default(inventory_hostname) }}:8787"
|
||||
life_noc_owner: root
|
||||
life_noc_group: root
|
||||
life_noc_admin_ui_enabled: false
|
||||
20
ansible/roles/life_noc/handlers/main.yml
Normal file
20
ansible/roles/life_noc/handlers/main.yml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
- name: validate icinga
|
||||
ansible.builtin.command: icinga2 daemon -C
|
||||
when: life_noc_validate_icinga | bool
|
||||
listen: validate and reload icinga
|
||||
|
||||
- name: reload icinga
|
||||
ansible.builtin.service:
|
||||
name: icinga2
|
||||
state: reloaded
|
||||
when: life_noc_reload_icinga | bool
|
||||
listen: validate and reload icinga
|
||||
|
||||
- name: reload systemd
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: restart life-noc input api
|
||||
ansible.builtin.service:
|
||||
name: life-noc-input-api
|
||||
state: restarted
|
||||
251
ansible/roles/life_noc/tasks/main.yml
Normal file
251
ansible/roles/life_noc/tasks/main.yml
Normal file
|
|
@ -0,0 +1,251 @@
|
|||
---
|
||||
- name: install minimal dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3
|
||||
- python3-yaml
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: remove legacy life-noc subdirectory under icinga conf.d
|
||||
ansible.builtin.file:
|
||||
path: /etc/icinga2/conf.d/life-noc
|
||||
state: absent
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: find previously deployed flattened life-noc config files
|
||||
ansible.builtin.find:
|
||||
paths: /etc/icinga2/conf.d
|
||||
patterns: "life-noc-*"
|
||||
file_type: file
|
||||
register: life_noc_flattened_files
|
||||
|
||||
- name: remove previously deployed flattened life-noc config files
|
||||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
state: absent
|
||||
loop: "{{ life_noc_flattened_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: create project root
|
||||
ansible.builtin.file:
|
||||
path: "{{ life_noc_project_root }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: copy project files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../"
|
||||
dest: "{{ life_noc_project_root }}/"
|
||||
owner: root
|
||||
group: root
|
||||
mode: preserve
|
||||
|
||||
- name: generate icinga services from domains
|
||||
ansible.builtin.command:
|
||||
cmd: python3 scripts/generate_services.py
|
||||
chdir: "{{ life_noc_project_root }}"
|
||||
environment:
|
||||
LIFE_NOC_PUBLIC_BASE_URL: "{{ life_noc_public_base_url }}"
|
||||
changed_when: true
|
||||
|
||||
- name: generate bpm from domains
|
||||
ansible.builtin.command:
|
||||
cmd: python3 scripts/generate_bpm.py
|
||||
chdir: "{{ life_noc_project_root }}"
|
||||
changed_when: true
|
||||
|
||||
##################################
|
||||
|
||||
- name: find life-noc command files on target
|
||||
ansible.builtin.find:
|
||||
paths: "{{ life_noc_project_root }}/icinga/commands"
|
||||
patterns: "*.conf"
|
||||
file_type: file
|
||||
register: life_noc_command_files
|
||||
|
||||
- name: deploy life-noc command files into icinga conf.d
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.path }}"
|
||||
dest: "/etc/icinga2/conf.d/life-noc-command-{{ item.path | basename }}"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ life_noc_command_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: find life-noc template files on target
|
||||
ansible.builtin.find:
|
||||
paths: "{{ life_noc_project_root }}/icinga/templates"
|
||||
patterns: "*.conf"
|
||||
file_type: file
|
||||
register: life_noc_template_files
|
||||
|
||||
- name: deploy life-noc template files into icinga conf.d
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.path }}"
|
||||
dest: "/etc/icinga2/conf.d/life-noc-template-{{ item.path | basename }}"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ life_noc_template_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: find life-noc servicegroup files on target
|
||||
ansible.builtin.find:
|
||||
paths: "{{ life_noc_project_root }}/icinga/servicegroups"
|
||||
patterns: "*.conf"
|
||||
file_type: file
|
||||
register: life_noc_servicegroup_files
|
||||
|
||||
- name: deploy life-noc servicegroup files into icinga conf.d
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.path }}"
|
||||
dest: "/etc/icinga2/conf.d/life-noc-servicegroup-{{ item.path | basename }}"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ life_noc_servicegroup_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: find life-noc host files on target
|
||||
ansible.builtin.find:
|
||||
paths: "{{ life_noc_project_root }}/icinga/hosts"
|
||||
patterns: "*.conf"
|
||||
file_type: file
|
||||
register: life_noc_host_files
|
||||
|
||||
- name: deploy life-noc host files into icinga conf.d
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.path }}"
|
||||
dest: "/etc/icinga2/conf.d/life-noc-host-{{ item.path | basename }}"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ life_noc_host_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: find life-noc service files on target
|
||||
ansible.builtin.find:
|
||||
paths: "{{ life_noc_project_root }}/icinga/services"
|
||||
patterns: "*.conf"
|
||||
file_type: file
|
||||
register: life_noc_service_files
|
||||
|
||||
- name: deploy life-noc service files into icinga conf.d
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.path }}"
|
||||
dest: "/etc/icinga2/conf.d/life-noc-service-{{ item.path | basename }}"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
loop: "{{ life_noc_service_files.files }}"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
##################################
|
||||
|
||||
- name: install mock plugin
|
||||
ansible.builtin.copy:
|
||||
src: "{{ life_noc_project_root }}/checks/check_life_noc_mock.sh"
|
||||
dest: /usr/lib/nagios/plugins/check_life_noc_mock.sh
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: install compatibility wrapper plugin
|
||||
ansible.builtin.copy:
|
||||
src: "{{ life_noc_project_root }}/checks/check_echeance_vie.sh"
|
||||
dest: /usr/lib/nagios/plugins/check_echeance_vie.sh
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: install generic life-noc probe plugin
|
||||
ansible.builtin.copy:
|
||||
src: "{{ life_noc_project_root }}/checks/check_life_noc_probe.py"
|
||||
dest: /usr/lib/nagios/plugins/check_life_noc_probe.py
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
notify:
|
||||
- validate icinga
|
||||
- reload icinga
|
||||
|
||||
- name: ensure bpm destination directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ life_noc_bpm_destination_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when:
|
||||
- life_noc_bpm_deploy_enabled | bool
|
||||
- life_noc_bpm_destination_dir is defined
|
||||
|
||||
- name: deploy bpm config
|
||||
ansible.builtin.copy:
|
||||
src: "{{ life_noc_project_root }}/bpm/Life-NOC.conf"
|
||||
dest: "{{ life_noc_bpm_destination_dir }}/Life-NOC.conf"
|
||||
remote_src: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when:
|
||||
- life_noc_bpm_deploy_enabled | bool
|
||||
- life_noc_bpm_destination_dir is defined
|
||||
|
||||
- name: install api dependencies for inputs service
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3-fastapi
|
||||
- python3-uvicorn
|
||||
- python3-multipart
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: deploy life-noc input api systemd unit
|
||||
ansible.builtin.template:
|
||||
src: life-noc-input-api.service.j2
|
||||
dest: /etc/systemd/system/life-noc-input-api.service
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify:
|
||||
- reload systemd
|
||||
- restart life-noc input api
|
||||
|
||||
- name: enable and start life-noc input api
|
||||
ansible.builtin.service:
|
||||
name: life-noc-input-api
|
||||
enabled: true
|
||||
state: started
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Life-NOC Input API
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
WorkingDirectory={{ life_noc_project_root }}
|
||||
Environment=LIFE_NOC_ADMIN_UI_ENABLED={{ "1" if (life_noc_admin_ui_enabled | bool) else "0" }}
|
||||
ExecStart=/usr/bin/python3 -m uvicorn scripts.life_noc_input_api:app --host 0.0.0.0 --port 8787
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
1
ansible/roles/mariadb/defaults/main.yml
Normal file
1
ansible/roles/mariadb/defaults/main.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
life_noc_db_root_socket: /run/mysqld/mysqld.sock
|
||||
13
ansible/roles/mariadb/tasks/main.yml
Normal file
13
ansible/roles/mariadb/tasks/main.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
- name: install mariadb server
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- mariadb-server
|
||||
- mariadb-client
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: enable and start mariadb
|
||||
ansible.builtin.service:
|
||||
name: mariadb
|
||||
enabled: true
|
||||
state: started
|
||||
10
ansible/site.yml
Normal file
10
ansible/site.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
- hosts: icinga
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- base
|
||||
- mariadb
|
||||
- icinga2
|
||||
- icingaweb2
|
||||
- businessprocess
|
||||
- life_noc
|
||||
62
bpm/Life-NOC.conf
Normal file
62
bpm/Life-NOC.conf
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
### Business Process Config File ###
|
||||
#
|
||||
# Title : Life-NOC
|
||||
# Description :
|
||||
# Owner : icingadmin
|
||||
# AddToMenu : yes
|
||||
# Backend :
|
||||
# Statetype : soft
|
||||
#
|
||||
###################################
|
||||
|
||||
REVUE = life-noc;revue-revue-quotidienne-life-noc & life-noc;revue-revue-hebdomadaire-priorites & life-noc;revue-revue-mensuelle-systeme-vie & life-noc;revue-revue-trimestrielle-orientation
|
||||
FOCUS = life-noc;focus-entretien-processus-focus & life-noc;focus-nettoyage-inbox-mentale & life-noc;focus-revue-limitation-engagements
|
||||
FINANCES-PERSONNELLES = life-noc;finances-personnelles-revision-comptes-bancaires & life-noc;finances-personnelles-verification-cartes-credit & life-noc;finances-personnelles-paiement-cartes-credit & life-noc;finances-personnelles-revision-budget-personnel & life-noc;finances-personnelles-verification-prelevements-automatiques & life-noc;finances-personnelles-verification-placements & life-noc;finances-personnelles-verification-cotisations-reer & life-noc;finances-personnelles-verification-celi & life-noc;finances-personnelles-preparation-dossier-financier-annuel
|
||||
FISCALITE-PERSONNELLE = life-noc;fiscalite-personnelle-preparation-documents-impots & life-noc;fiscalite-personnelle-production-impots-federal & life-noc;fiscalite-personnelle-production-impots-quebec & life-noc;fiscalite-personnelle-paiement-solde-impots & life-noc;fiscalite-personnelle-verification-avis-cotisation & life-noc;fiscalite-personnelle-archivage-documents-fiscaux & life-noc;fiscalite-personnelle-verification-acomptes-provisionnels
|
||||
OBLIGATIONS-LEGALES-PERSONNELLES = life-noc;obligations-legales-personnelles-verification-testament & life-noc;obligations-legales-personnelles-verification-mandat-inaptitude & life-noc;obligations-legales-personnelles-verification-directives-medicales & life-noc;obligations-legales-personnelles-verification-papiers-identite & life-noc;obligations-legales-personnelles-renouvellement-permis-conduire & life-noc;obligations-legales-personnelles-verification-carte-assurance-maladie & life-noc;obligations-legales-personnelles-verification-passeport
|
||||
MAISON = life-noc;maison-remplacement-filtre-fournaise & life-noc;maison-inspection-fournaise & life-noc;maison-inspection-thermopompe & life-noc;maison-nettoyage-unites-exterieures & life-noc;maison-inspection-toiture & life-noc;maison-inspection-gouttieres & life-noc;maison-inspection-fondation & life-noc;maison-verification-drainage-terrain & life-noc;maison-test-detecteurs-fumee & life-noc;maison-test-detecteurs-co & life-noc;maison-remplacement-piles-detecteurs & life-noc;maison-verification-plomberie-visible & life-noc;maison-inspection-sump-pump & life-noc;maison-verification-calfetrage & life-noc;maison-inspection-portes-garage & life-noc;maison-verification-extincteurs
|
||||
GARAGE-ET-RANGEMENT = life-noc;garage-et-rangement-inspection-rangement-plafond & life-noc;garage-et-rangement-revue-inventaire-garage & life-noc;garage-et-rangement-verification-rouille-outillage & life-noc;garage-et-rangement-inspection-securite-garage & life-noc;garage-et-rangement-rotation-stockage-bacs
|
||||
ENERGIE = life-noc;energie-inspection-batteries-lifepo4 & life-noc;energie-verification-tension-batteries & life-noc;energie-verification-smartshunt & life-noc;energie-verification-cerbo-gx & life-noc;energie-verification-can-rs485 & life-noc;energie-inspection-cablage-energie & life-noc;energie-verification-busbars & life-noc;energie-verification-parametres-charge & life-noc;energie-test-charge-batteries & life-noc;energie-test-comportement-onduleur & life-noc;energie-verification-journal-evenements-victron
|
||||
RESILIENCE = life-noc;resilience-test-generatrice-propane & life-noc;resilience-verification-carburant-generatrice & life-noc;resilience-verification-procedure-bascule & life-noc;resilience-verification-stock-lampes-piles & life-noc;resilience-verification-trousses-urgence & life-noc;resilience-revision-plan-urgence & life-noc;resilience-test-autonomie-base & life-noc;resilience-verification-moyens-cuisson-secours
|
||||
STOCK-ALIMENTAIRE = life-noc;stock-alimentaire-rotation-nourriture-seche & life-noc;stock-alimentaire-verification-reserve-eau & life-noc;stock-alimentaire-verification-mylar-absorbeurs & life-noc;stock-alimentaire-revue-inventaire-conserves & life-noc;stock-alimentaire-revue-inventaire-farine-riz-pates & life-noc;stock-alimentaire-verification-bacs-legumes-racines & life-noc;stock-alimentaire-revue-supplements-vitamines
|
||||
SANTE = life-noc;sante-verification-trousse-premiers-soins & life-noc;sante-verification-expiration-medicaments & life-noc;sante-revision-rendez-vous-medicaux & life-noc;sante-verification-lunettes-prescriptions & life-noc;sante-verification-dossier-sante
|
||||
VOITURE = life-noc;voiture-verification-huile-moteur & life-noc;voiture-inspection-freins & life-noc;voiture-verification-pneus & life-noc;voiture-ajustement-valves & life-noc;voiture-verification-timing-belt & life-noc;voiture-verification-batterie-voiture & life-noc;voiture-verification-balais-essuie-glace & life-noc;voiture-verification-liquides & life-noc;voiture-verification-eclairage & life-noc;voiture-verification-immatriculation-assurance
|
||||
JARDIN = life-noc;jardin-inspection-vignes & life-noc;jardin-entretien-bleuetiers & life-noc;jardin-entretien-framboisiers & life-noc;jardin-inspection-kiwis-nordiques & life-noc;jardin-entretien-rhubarbe & life-noc;jardin-inspection-groseillier & life-noc;jardin-inspection-muriers & life-noc;jardin-entretien-houblon & life-noc;jardin-revision-pharmacopee-jardin & life-noc;jardin-revision-armoire-produits-jardin
|
||||
OUTILS-ET-EQUIPEMENTS = life-noc;outils-et-equipements-entretien-outils-jardin & life-noc;outils-et-equipements-inspection-outils-electriques & life-noc;outils-et-equipements-verification-rallonges-et-connecteurs & life-noc;outils-et-equipements-verification-compresseur-et-accessoires & life-noc;outils-et-equipements-revision-inventaire-outillage
|
||||
INFORMATIQUE-PERSONNELLE = life-noc;informatique-personnelle-verification-sauvegardes-personnelles & life-noc;informatique-personnelle-nettoyage-stockage-personnel & life-noc;informatique-personnelle-verification-comptes-importants & life-noc;informatique-personnelle-revue-mots-de-passe-personnels & life-noc;informatique-personnelle-verification-documents-cloud-personnels
|
||||
INFRASTRUCTURE-CHEZLEPRO = life-noc;infrastructure-chezlepro-verification-proxmox & life-noc;infrastructure-chezlepro-verification-ceph & life-noc;infrastructure-chezlepro-test-restauration-backups & life-noc;infrastructure-chezlepro-verification-pbs-truenas & life-noc;infrastructure-chezlepro-verification-ups-infrastructure & life-noc;infrastructure-chezlepro-verification-capacite-stockage & life-noc;infrastructure-chezlepro-verification-apt-cacher-ng & life-noc;infrastructure-chezlepro-verification-icinga2 & life-noc;infrastructure-chezlepro-verification-keycloak-openldap & life-noc;infrastructure-chezlepro-verification-nextcloud & life-noc;infrastructure-chezlepro-verification-mailcow & life-noc;infrastructure-chezlepro-verification-openvas & life-noc;infrastructure-chezlepro-verification-journaux-systemes
|
||||
RESEAU-CHEZLEPRO = life-noc;reseau-chezlepro-verification-firewalls & life-noc;reseau-chezlepro-verification-vpn-openvpn & life-noc;reseau-chezlepro-verification-crl-certificats & life-noc;reseau-chezlepro-verification-switches & life-noc;reseau-chezlepro-verification-vlans-segmentation & life-noc;reseau-chezlepro-verification-dns & life-noc;reseau-chezlepro-verification-dynamic-dns & life-noc;reseau-chezlepro-audit-regles-firewall & life-noc;reseau-chezlepro-verification-geoblocking & life-noc;reseau-chezlepro-verification-certificats-publics
|
||||
SECURITE-CHEZLEPRO = life-noc;securite-chezlepro-verification-mises-a-jour-securite & life-noc;securite-chezlepro-audit-comptes-acces & life-noc;securite-chezlepro-verification-ids-snort & life-noc;securite-chezlepro-revue-pki-privee & life-noc;securite-chezlepro-revue-politiques-securite & life-noc;securite-chezlepro-verification-sauvegardes-configuration
|
||||
EXPLOITATION-CHEZLEPRO = life-noc;exploitation-chezlepro-revision-playbooks-ansible & life-noc;exploitation-chezlepro-verification-inventaires-ansible & life-noc;exploitation-chezlepro-revision-documentation-technique & life-noc;exploitation-chezlepro-verification-procedures-reprise & life-noc;exploitation-chezlepro-revue-capacite-ressources & life-noc;exploitation-chezlepro-verification-jobs-automatises
|
||||
OBLIGATIONS-CHEZLEPRO = life-noc;obligations-chezlepro-verification-registraire-entreprise & life-noc;obligations-chezlepro-verification-declarations-taxes & life-noc;obligations-chezlepro-verification-dossier-comptable-entreprise & life-noc;obligations-chezlepro-verification-facturation-clients & life-noc;obligations-chezlepro-verification-paiements-fournisseurs & life-noc;obligations-chezlepro-verification-contrats-ententes & life-noc;obligations-chezlepro-verification-assurances-entreprise & life-noc;obligations-chezlepro-archivage-documents-entreprise
|
||||
ACTIFS-CHEZLEPRO = life-noc;actifs-chezlepro-revision-inventaire-materiel & life-noc;actifs-chezlepro-verification-amortissables & life-noc;actifs-chezlepro-verification-serveurs-et-composants & life-noc;actifs-chezlepro-verification-reserve-pieces & life-noc;actifs-chezlepro-revision-actifs-transferts
|
||||
PROJETS = life-noc;projets-revision-life-noc & life-noc;projets-revision-alliance-boreale & life-noc;projets-revision-erplibre & life-noc;projets-revision-semence-numerique & life-noc;projets-revision-ortrux-1 & life-noc;projets-revision-district16
|
||||
COMMUNAUTE = life-noc;communaute-verification-outils-aa & life-noc;communaute-verification-espace-87-16 & life-noc;communaute-verification-salles-visio-groupes & life-noc;communaute-verification-depots-rapports-rsg & life-noc;communaute-revision-outils-communication-communaute
|
||||
DOCUMENTATION = life-noc;documentation-revue-docs-personnelles-importantes & life-noc;documentation-revue-wiki-technique & life-noc;documentation-revue-base-connaissances & life-noc;documentation-verification-sauvegarde-docs-cles
|
||||
ANIMAUX = life-noc;animaux-verification-stock-nourriture-chats & life-noc;animaux-verification-friandises-et-litiere & life-noc;animaux-revision-routine-soins-animaux
|
||||
|
||||
display 1;REVUE;REVUE
|
||||
display 1;FOCUS;FOCUS
|
||||
display 1;FINANCES-PERSONNELLES;FINANCES-PERSONNELLES
|
||||
display 1;FISCALITE-PERSONNELLE;FISCALITE-PERSONNELLE
|
||||
display 1;OBLIGATIONS-LEGALES-PERSONNELLES;OBLIGATIONS-LEGALES-PERSONNELLES
|
||||
display 1;MAISON;MAISON
|
||||
display 1;GARAGE-ET-RANGEMENT;GARAGE-ET-RANGEMENT
|
||||
display 1;ENERGIE;ENERGIE
|
||||
display 1;RESILIENCE;RESILIENCE
|
||||
display 1;STOCK-ALIMENTAIRE;STOCK-ALIMENTAIRE
|
||||
display 1;SANTE;SANTE
|
||||
display 1;VOITURE;VOITURE
|
||||
display 1;JARDIN;JARDIN
|
||||
display 1;OUTILS-ET-EQUIPEMENTS;OUTILS-ET-EQUIPEMENTS
|
||||
display 1;INFORMATIQUE-PERSONNELLE;INFORMATIQUE-PERSONNELLE
|
||||
display 1;INFRASTRUCTURE-CHEZLEPRO;INFRASTRUCTURE-CHEZLEPRO
|
||||
display 1;RESEAU-CHEZLEPRO;RESEAU-CHEZLEPRO
|
||||
display 1;SECURITE-CHEZLEPRO;SECURITE-CHEZLEPRO
|
||||
display 1;EXPLOITATION-CHEZLEPRO;EXPLOITATION-CHEZLEPRO
|
||||
display 1;OBLIGATIONS-CHEZLEPRO;OBLIGATIONS-CHEZLEPRO
|
||||
display 1;ACTIFS-CHEZLEPRO;ACTIFS-CHEZLEPRO
|
||||
display 1;PROJETS;PROJETS
|
||||
display 1;COMMUNAUTE;COMMUNAUTE
|
||||
display 1;DOCUMENTATION;DOCUMENTATION
|
||||
display 1;ANIMAUX;ANIMAUX
|
||||
5
checks/check_echeance_vie.sh
Executable file
5
checks/check_echeance_vie.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
# Compatibilité transitoire.
|
||||
# Cette ancienne sonde d'échéance est conservée comme wrapper vers la sonde mock.
|
||||
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
exec "$SCRIPT_DIR/check_life_noc_mock.sh" "$@"
|
||||
57
checks/check_life_noc_mock.sh
Executable file
57
checks/check_life_noc_mock.sh
Executable file
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/bash
|
||||
set -u
|
||||
|
||||
STATE="OK"
|
||||
MESSAGE="Sous contrôle"
|
||||
ITEM_NAME=""
|
||||
DATE_ECHEANCE=""
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
--state)
|
||||
STATE="$2"
|
||||
shift 2
|
||||
;;
|
||||
--message)
|
||||
MESSAGE="$2"
|
||||
shift 2
|
||||
;;
|
||||
--item-name)
|
||||
ITEM_NAME="$2"
|
||||
shift 2
|
||||
;;
|
||||
--date)
|
||||
DATE_ECHEANCE="$2"
|
||||
shift 2
|
||||
;;
|
||||
*)
|
||||
echo "UNKNOWN - argument non reconnu: $1"
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
STATE_UPPER=$(printf '%s' "$STATE" | tr '[:lower:]' '[:upper:]')
|
||||
OUTPUT_SUFFIX=""
|
||||
|
||||
[ -n "$ITEM_NAME" ] && OUTPUT_SUFFIX="$OUTPUT_SUFFIX | item=$ITEM_NAME"
|
||||
[ -n "$DATE_ECHEANCE" ] && OUTPUT_SUFFIX="$OUTPUT_SUFFIX date=$DATE_ECHEANCE"
|
||||
|
||||
case "$STATE_UPPER" in
|
||||
OK)
|
||||
echo "OK - $MESSAGE$OUTPUT_SUFFIX"
|
||||
exit 0
|
||||
;;
|
||||
WARNING)
|
||||
echo "WARNING - $MESSAGE$OUTPUT_SUFFIX"
|
||||
exit 1
|
||||
;;
|
||||
CRITICAL)
|
||||
echo "CRITICAL - $MESSAGE$OUTPUT_SUFFIX"
|
||||
exit 2
|
||||
;;
|
||||
*)
|
||||
echo "UNKNOWN - état mock invalide: $STATE"
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
120
checks/check_life_noc_probe.py
Executable file
120
checks/check_life_noc_probe.py
Executable file
|
|
@ -0,0 +1,120 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
import yaml
|
||||
|
||||
|
||||
def exit_with(code: int, text: str) -> None:
|
||||
print(text)
|
||||
raise SystemExit(code)
|
||||
|
||||
|
||||
def parse_date(value: str) -> datetime:
|
||||
return datetime.strptime(value, "%Y-%m-%d").replace(tzinfo=timezone.utc)
|
||||
|
||||
|
||||
def load_input_value(inputs_file: str, item_key: str) -> str:
|
||||
path = Path(inputs_file)
|
||||
if not path.exists():
|
||||
raise ValueError(f"inputs file introuvable: {inputs_file}")
|
||||
|
||||
data = yaml.safe_load(path.read_text(encoding="utf-8"))
|
||||
if not isinstance(data, dict):
|
||||
raise ValueError(f"inputs file invalide: {inputs_file}")
|
||||
|
||||
if item_key not in data:
|
||||
raise ValueError(f"item_key introuvable dans le store: {item_key}")
|
||||
|
||||
item = data[item_key]
|
||||
if not isinstance(item, dict):
|
||||
raise ValueError(f"entrée invalide pour item_key: {item_key}")
|
||||
|
||||
if "value" not in item:
|
||||
raise ValueError(f"champ 'value' absent pour item_key: {item_key}")
|
||||
|
||||
return str(item["value"]).strip()
|
||||
|
||||
|
||||
def main() -> int:
|
||||
ap = argparse.ArgumentParser()
|
||||
ap.add_argument("--probe-type", required=True)
|
||||
ap.add_argument("--source-type", required=True)
|
||||
ap.add_argument("--source-value")
|
||||
ap.add_argument("--inputs-file")
|
||||
ap.add_argument("--item-key")
|
||||
ap.add_argument("--unit", required=True)
|
||||
|
||||
ap.add_argument("--unknown-lt", type=float)
|
||||
ap.add_argument("--unknown-gte", type=float)
|
||||
|
||||
ap.add_argument("--ok-gte", type=float)
|
||||
ap.add_argument("--ok-lt", type=float)
|
||||
|
||||
ap.add_argument("--warning-gte", type=float)
|
||||
ap.add_argument("--warning-lt", type=float)
|
||||
|
||||
ap.add_argument("--critical-gte", type=float)
|
||||
ap.add_argument("--critical-lt", type=float)
|
||||
|
||||
ap.add_argument("--on-error", default="critical")
|
||||
ap.add_argument("--label", default="life-noc")
|
||||
args = ap.parse_args()
|
||||
|
||||
try:
|
||||
if args.source_type != "manual_date":
|
||||
exit_with(2, f"CRITICAL - source_type non supporté: {args.source_type}")
|
||||
|
||||
if args.unit != "days":
|
||||
exit_with(2, f"CRITICAL - unité non supportée: {args.unit}")
|
||||
|
||||
if args.inputs_file and args.item_key:
|
||||
source_value = load_input_value(args.inputs_file, args.item_key)
|
||||
elif args.source_value:
|
||||
source_value = args.source_value
|
||||
else:
|
||||
raise ValueError("aucune source fournie: inputs-file/item-key ou source-value requis")
|
||||
|
||||
dt = parse_date(source_value)
|
||||
now = datetime.now(timezone.utc)
|
||||
|
||||
if args.probe_type == "elapsed_time":
|
||||
metric = (now - dt).total_seconds() / 86400.0
|
||||
|
||||
if args.critical_gte is not None and metric >= args.critical_gte:
|
||||
exit_with(2, f"CRITICAL - {args.label}: {metric:.1f} jours")
|
||||
if args.warning_gte is not None and metric >= args.warning_gte:
|
||||
exit_with(1, f"WARNING - {args.label}: {metric:.1f} jours")
|
||||
if args.ok_gte is not None and metric >= args.ok_gte:
|
||||
exit_with(0, f"OK - {args.label}: {metric:.1f} jours")
|
||||
if args.unknown_lt is not None and metric < args.unknown_lt:
|
||||
exit_with(3, f"UNKNOWN - {args.label}: {metric:.1f} jours")
|
||||
|
||||
exit_with(2, f"CRITICAL - {args.label}: seuils incohérents")
|
||||
|
||||
elif args.probe_type == "days_until_due":
|
||||
metric = (dt - now).total_seconds() / 86400.0
|
||||
|
||||
if args.critical_lt is not None and metric < args.critical_lt:
|
||||
exit_with(2, f"CRITICAL - {args.label}: {metric:.1f} jours restants")
|
||||
if args.warning_lt is not None and metric < args.warning_lt:
|
||||
exit_with(1, f"WARNING - {args.label}: {metric:.1f} jours restants")
|
||||
if args.ok_lt is not None and metric < args.ok_lt:
|
||||
exit_with(0, f"OK - {args.label}: {metric:.1f} jours restants")
|
||||
if args.unknown_gte is not None and metric >= args.unknown_gte:
|
||||
exit_with(3, f"UNKNOWN - {args.label}: {metric:.1f} jours restants")
|
||||
|
||||
exit_with(2, f"CRITICAL - {args.label}: seuils incohérents")
|
||||
|
||||
else:
|
||||
exit_with(2, f"CRITICAL - probe_type non supporté: {args.probe_type}")
|
||||
|
||||
except Exception as exc:
|
||||
if args.on_error == "critical":
|
||||
exit_with(2, f"CRITICAL - erreur sonde: {exc}")
|
||||
exit_with(3, f"UNKNOWN - erreur sonde: {exc}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
12
data/inputs/actifs-chezlepro.yaml
Normal file
12
data/inputs/actifs-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
revision-inventaire-materiel:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-serveurs-et-composants:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-actifs-transferts:
|
||||
value: '2026-03-17'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
4
data/inputs/animaux.yaml
Normal file
4
data/inputs/animaux.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
revision-routine-soins-animaux:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/communaute.yaml
Normal file
20
data/inputs/communaute.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
verification-outils-aa:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-espace-87-16:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-salles-visio-groupes:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-depots-rapports-rsg:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-outils-communication-communaute:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
16
data/inputs/documentation.yaml
Normal file
16
data/inputs/documentation.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
revue-docs-personnelles-importantes:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-wiki-technique:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-base-connaissances:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-sauvegarde-docs-cles:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
32
data/inputs/energie.yaml
Normal file
32
data/inputs/energie.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
inspection-batteries-lifepo4:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-can-rs485:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-cablage-energie:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-busbars:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-parametres-charge:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-charge-batteries:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-comportement-onduleur:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-journal-evenements-victron:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
24
data/inputs/exploitation-chezlepro.yaml
Normal file
24
data/inputs/exploitation-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
revision-playbooks-ansible:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-inventaires-ansible:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-documentation-technique:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-procedures-reprise:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-capacite-ressources:
|
||||
value: '2026-03-17'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-jobs-automatises:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
36
data/inputs/finances-personnelles.yaml
Normal file
36
data/inputs/finances-personnelles.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
revision-comptes-bancaires:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-cartes-credit:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
paiement-cartes-credit:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-budget-personnel:
|
||||
value: '2026-03-05'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-prelevements-automatiques:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-placements:
|
||||
value: '2026-04-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-cotisations-reer:
|
||||
value: '2026-02-21'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-celi:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
preparation-dossier-financier-annuel:
|
||||
value: '2025-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
12
data/inputs/fiscalite-personnelle.yaml
Normal file
12
data/inputs/fiscalite-personnelle.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
preparation-documents-impots:
|
||||
value: '2026-03-08'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-avis-cotisation:
|
||||
value: '2026-03-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
archivage-documents-fiscaux:
|
||||
value: '2026-03-17'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
12
data/inputs/focus.yaml
Normal file
12
data/inputs/focus.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
entretien-processus-focus:
|
||||
value: '2026-03-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
nettoyage-inbox-mentale:
|
||||
value: '2026-03-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-limitation-engagements:
|
||||
value: '2026-02-28'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/garage-et-rangement.yaml
Normal file
20
data/inputs/garage-et-rangement.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
inspection-rangement-plafond:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-inventaire-garage:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-rouille-outillage:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-securite-garage:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
rotation-stockage-bacs:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/informatique-personnelle.yaml
Normal file
20
data/inputs/informatique-personnelle.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
verification-sauvegardes-personnelles:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
nettoyage-stockage-personnel:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-comptes-importants:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-mots-de-passe-personnels:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-documents-cloud-personnels:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
40
data/inputs/infrastructure-chezlepro.yaml
Normal file
40
data/inputs/infrastructure-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
verification-proxmox:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-restauration-backups:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-pbs-truenas:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-apt-cacher-ng:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-icinga2:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-keycloak-openldap:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-nextcloud:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-mailcow:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-openvas:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-journaux-systemes:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
32
data/inputs/jardin.yaml
Normal file
32
data/inputs/jardin.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
inspection-vignes:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
entretien-bleuetiers:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
entretien-framboisiers:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-kiwis-nordiques:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
entretien-rhubarbe:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-groseillier:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-muriers:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
entretien-houblon:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
60
data/inputs/maison.yaml
Normal file
60
data/inputs/maison.yaml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
remplacement-filtre-fournaise:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-fournaise:
|
||||
value: '2026-03-19'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-thermopompe:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
nettoyage-unites-exterieures:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-toiture:
|
||||
value: '2026-04-04'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-gouttieres:
|
||||
value: '2026-05-05'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-fondation:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-drainage-terrain:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-detecteurs-fumee:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-detecteurs-co:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
remplacement-piles-detecteurs:
|
||||
value: '2026-04-04'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-plomberie-visible:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-sump-pump:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-calfetrage:
|
||||
value: '2026-04-18'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-portes-garage:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
16
data/inputs/obligations-chezlepro.yaml
Normal file
16
data/inputs/obligations-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
verification-dossier-comptable-entreprise:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-facturation-clients:
|
||||
value: '2026-03-10'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-paiements-fournisseurs:
|
||||
value: '2026-03-10'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
archivage-documents-entreprise:
|
||||
value: '2026-03-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/obligations-legales-personnelles.yaml
Normal file
20
data/inputs/obligations-legales-personnelles.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
renouvellement-permis-conduire:
|
||||
value: '2026-09-20'
|
||||
captured_at: '2026-03-14T23:30:00Z'
|
||||
origin: manual
|
||||
verification-testament:
|
||||
value: '2026-04-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-mandat-inaptitude:
|
||||
value: '2026-04-02'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-directives-medicales:
|
||||
value: '2026-01-16'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-papiers-identite:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/outils-et-equipements.yaml
Normal file
20
data/inputs/outils-et-equipements.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
entretien-outils-jardin:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
inspection-outils-electriques:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-rallonges-et-connecteurs:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-compresseur-et-accessoires:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-inventaire-outillage:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
24
data/inputs/projets.yaml
Normal file
24
data/inputs/projets.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
revision-life-noc:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-alliance-boreale:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-erplibre:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-semence-numerique:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-ortrux-1:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-district16:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
32
data/inputs/reseau-chezlepro.yaml
Normal file
32
data/inputs/reseau-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
verification-firewalls:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-vpn-openvpn:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-switches:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-vlans-segmentation:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-dns:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-dynamic-dns:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
audit-regles-firewall:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-geoblocking:
|
||||
value: '2026-02-14'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
16
data/inputs/resilience.yaml
Normal file
16
data/inputs/resilience.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
test-generatrice-propane:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-procedure-bascule:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revision-plan-urgence:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
test-autonomie-base:
|
||||
value: '2026-03-17'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
16
data/inputs/revue.yaml
Normal file
16
data/inputs/revue.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
revue-quotidienne-life-noc:
|
||||
value: '2026-03-14'
|
||||
captured_at: '2026-03-14T08:00:00Z'
|
||||
origin: manual
|
||||
revue-hebdomadaire-priorites:
|
||||
value: '2026-03-14'
|
||||
captured_at: '2026-03-14T23:16:41Z'
|
||||
origin: manual
|
||||
revue-mensuelle-systeme-vie:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-trimestrielle-orientation:
|
||||
value: '2026-04-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
4
data/inputs/sante.yaml
Normal file
4
data/inputs/sante.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
verification-dossier-sante:
|
||||
value: '2026-03-17'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
20
data/inputs/securite-chezlepro.yaml
Normal file
20
data/inputs/securite-chezlepro.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
verification-mises-a-jour-securite:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
audit-comptes-acces:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-ids-snort:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
revue-politiques-securite:
|
||||
value: '2026-03-03'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-sauvegardes-configuration:
|
||||
value: '2026-03-15'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
4
data/inputs/stock-alimentaire.yaml
Normal file
4
data/inputs/stock-alimentaire.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
rotation-nourriture-seche:
|
||||
value: '2026-03-01'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
8
data/inputs/voiture.yaml
Normal file
8
data/inputs/voiture.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
verification-balais-essuie-glace:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
verification-eclairage:
|
||||
value: '2026-01-31'
|
||||
captured_at: '2026-03-16T00:00:00Z'
|
||||
origin: seed_from_legacy_date
|
||||
|
|
@ -1,29 +1,83 @@
|
|||
# Documentation Life-NOC
|
||||
|
||||
Un sujet, un document. Ce qui n'est plus vrai passe dans `archive/`, avec son statut en tête.
|
||||
Cette arborescence constitue le **point d’entrée documentaire** du dépôt.
|
||||
|
||||
## Pourquoi
|
||||
## Règles de lecture
|
||||
|
||||
- `vision/vision-fondatrice.md` — ce qu'est Life-NOC, et ce qu'il n'est pas : « une machine qui
|
||||
aide à ne pas perdre le fil »
|
||||
- `vision/devise-et-formulations.md` — la devise et le langage de référence
|
||||
- **Un sujet = un document canonique**
|
||||
- les documents sous `docs/archive/` sont **historiques** et **non normatifs**
|
||||
- `domains.yaml` demeure la **source de vérité opérationnelle** du système
|
||||
- la documentation explique, cadre et guide ; elle ne remplace pas la configuration active
|
||||
|
||||
## Pour les personnes
|
||||
## Structure
|
||||
|
||||
Les guides vivent avec le code, dans `lifenoc/guides/`, et l'application les sert (lien « Aide »
|
||||
des deux écrans) :
|
||||
### `docs/vision/`
|
||||
Cadre conceptuel et formulations de référence.
|
||||
|
||||
- `lifenoc/guides/personne-aidee.md` — l'écran du téléphone ; à imprimer (`/aide/personne-aidee`)
|
||||
- `lifenoc/guides/personne-qui-configure.md` — configurer, régler, superviser (`/aide/`)
|
||||
- `vision/vision-fondatrice.md` — définition, finalité et nature de Life-NOC
|
||||
- `vision/devise-et-formulations.md` — devise, formulations de positionnement et langage de référence
|
||||
|
||||
## Pour installer et faire évoluer
|
||||
### `docs/architecture/`
|
||||
Choix structurants et fonctionnement d’ensemble.
|
||||
|
||||
- `README.md` (racine) — les deux écrans, les mesures, les données, la ligne de commande, l'API,
|
||||
le contrat Set-OPS
|
||||
- `CHANGELOG.md` (racine) — ce qui a changé, version par version
|
||||
- `tests/test_lifenoc.py` — ce que le moteur et les écrans garantissent
|
||||
- `architecture/architecture-life-noc.md` — architecture complète et articulation des composants
|
||||
- `architecture/decisions-techniques.md` — décisions de principe et choix techniques retenus
|
||||
|
||||
## `archive/`
|
||||
### `docs/modeles/`
|
||||
Modèles canoniques utilisés par le système.
|
||||
|
||||
La POC Icinga (jusqu'au commit `a64386d`) : architecture, modèles des sondes et des intrants,
|
||||
plan de démockage, anciens guides. Pour mémoire ; aucun ne décrit l'application actuelle.
|
||||
- `modeles/probe-model-v1.md` — modèle canonique des sondes
|
||||
- `modeles/inputs-store-model-v1.md` — modèle de stockage des intrants vivants
|
||||
|
||||
### `docs/guides/`
|
||||
Guides pratiques pour installer, exploiter et utiliser Life-NOC.
|
||||
|
||||
- `guides/deploiement-from-scratch.md` — déploiement depuis Debian 12 vanille
|
||||
- `guides/exploitation-life-noc.md` — exploitation, vérifications et dépannage
|
||||
- `guides/guide-usager-life-noc.md` — usage courant côté utilisateur
|
||||
|
||||
### `docs/roadmap/`
|
||||
Évolution planifiée du système.
|
||||
|
||||
- `roadmap/plan-demockage-life-noc.md` — trajectoire de démockage et de pages item canoniques
|
||||
|
||||
### `docs/validation/`
|
||||
Constats validés sur le terrain.
|
||||
|
||||
- `validation/preuve-de-reproductibilite.md` — résultats réellement reproduits
|
||||
|
||||
### `docs/archive/`
|
||||
Documents anciens, fusionnés ou remplacés.
|
||||
|
||||
Ne pas les utiliser comme références actives.
|
||||
|
||||
## Ordre de lecture conseillé
|
||||
|
||||
### Pour comprendre rapidement le projet
|
||||
|
||||
1. `vision/vision-fondatrice.md`
|
||||
2. `architecture/architecture-life-noc.md`
|
||||
3. `architecture/decisions-techniques.md`
|
||||
4. `modeles/probe-model-v1.md`
|
||||
|
||||
### Pour déployer
|
||||
|
||||
1. `guides/deploiement-from-scratch.md`
|
||||
2. `validation/preuve-de-reproductibilite.md`
|
||||
3. `guides/exploitation-life-noc.md`
|
||||
|
||||
### Pour faire évoluer le système
|
||||
|
||||
1. `modeles/probe-model-v1.md`
|
||||
2. `modeles/inputs-store-model-v1.md`
|
||||
3. `roadmap/plan-demockage-life-noc.md`
|
||||
|
||||
## Politique documentaire
|
||||
|
||||
Lorsqu’un document devient redondant, trop partiel ou remplacé par une version canonique plus complète :
|
||||
|
||||
- il quitte l’arborescence active
|
||||
- il passe dans `docs/archive/`
|
||||
- un statut explicite d’archivage lui est ajouté
|
||||
|
||||
L’objectif est de garder une documentation **lisible, non contradictoire et sans doublons actifs**.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Architecture et fonctionnement de Life-NOC
|
||||
|
||||
## 1. Présentation générale
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Décisions techniques — Life-NOC
|
||||
|
||||
## Orientation générale
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga, remplacée par la v1.0.0 (deux écrans). Voir `lifenoc/guides/` (aussi servis par l’application à `/aide/`) et `README.md`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Interface web d'administration optionnelle — Life-NOC
|
||||
|
||||
## Objet
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga, remplacée par la v1.0.0 (deux écrans). Voir `lifenoc/guides/` (aussi servis par l’application à `/aide/`) et `README.md`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Déploiement from scratch Debian 12
|
||||
|
||||
Objectif : partir d'une **VM Debian 12 vanille** disposant seulement :
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga, remplacée par la v1.0.0 (deux écrans). Voir `lifenoc/guides/` (aussi servis par l’application à `/aide/`) et `README.md`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Exploitation et dépannage Life-NOC
|
||||
|
||||
## 1. Vérifications utiles
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga, remplacée par la v1.0.0 (deux écrans). Voir `lifenoc/guides/` (aussi servis par l’application à `/aide/`) et `README.md`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Guide usager Life-NOC
|
||||
|
||||
## 1. À quoi sert Life-NOC
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Life-NOC — Inputs Store Model v1
|
||||
|
||||
## 1. Objet
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Life-NOC — Probe Model v1
|
||||
|
||||
## 1. Objet
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Plan de démockage Life-NOC
|
||||
|
||||
## 1. Objet
|
||||
|
|
@ -1,9 +1,3 @@
|
|||
# STATUT : ARCHIVÉ
|
||||
|
||||
Ce document décrit la POC Icinga (jusqu’au commit `a64386d`), remplacée par la v1.0.0 (deux écrans, sans Icinga). Voir `README.md` et `lifenoc/guides/`.
|
||||
|
||||
Ne pas l’utiliser comme source canonique.
|
||||
|
||||
# Preuve de reproductibilité — Life-NOC
|
||||
|
||||
## Objet
|
||||
3019
domains.yaml
Normal file
3019
domains.yaml
Normal file
File diff suppressed because it is too large
Load diff
12
icinga/commands/check_echeance_vie.conf
Normal file
12
icinga/commands/check_echeance_vie.conf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
object CheckCommand "check_echeance_vie" {
|
||||
|
||||
command = [ PluginDir + "/check_echeance_vie.sh" ]
|
||||
|
||||
arguments = {
|
||||
"--state" = "$mock_state$"
|
||||
"--message" = "$mock_message$"
|
||||
"--item-name" = "$service.name$"
|
||||
"--date" = "$date_echeance$"
|
||||
}
|
||||
|
||||
}
|
||||
12
icinga/commands/check_life_noc_mock.conf
Normal file
12
icinga/commands/check_life_noc_mock.conf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
object CheckCommand "check_life_noc_mock" {
|
||||
|
||||
command = [ PluginDir + "/check_life_noc_mock.sh" ]
|
||||
|
||||
arguments = {
|
||||
"--state" = "$mock_state$"
|
||||
"--message" = "$mock_message$"
|
||||
"--item-name" = "$service.name$"
|
||||
"--date" = "$date_echeance$"
|
||||
}
|
||||
|
||||
}
|
||||
27
icinga/commands/check_life_noc_probe.conf
Normal file
27
icinga/commands/check_life_noc_probe.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
object CheckCommand "check_life_noc_probe" {
|
||||
command = [ PluginDir + "/check_life_noc_probe.py" ]
|
||||
|
||||
arguments = {
|
||||
"--probe-type" = "$life_noc_probe_type$"
|
||||
"--source-type" = "$life_noc_source_type$"
|
||||
"--source-value" = "$life_noc_source_value$"
|
||||
"--inputs-file" = "$life_noc_inputs_file$"
|
||||
"--item-key" = "$life_noc_item_key$"
|
||||
"--unit" = "$life_noc_metric_unit$"
|
||||
|
||||
"--unknown-lt" = "$life_noc_threshold_unknown_lt$"
|
||||
"--unknown-gte" = "$life_noc_threshold_unknown_gte$"
|
||||
|
||||
"--ok-gte" = "$life_noc_threshold_ok_gte$"
|
||||
"--ok-lt" = "$life_noc_threshold_ok_lt$"
|
||||
|
||||
"--warning-gte" = "$life_noc_threshold_warning_gte$"
|
||||
"--warning-lt" = "$life_noc_threshold_warning_lt$"
|
||||
|
||||
"--critical-gte" = "$life_noc_threshold_critical_gte$"
|
||||
"--critical-lt" = "$life_noc_threshold_critical_lt$"
|
||||
|
||||
"--on-error" = "$life_noc_on_error$"
|
||||
"--label" = "$life_noc_label$"
|
||||
}
|
||||
}
|
||||
9
icinga/hosts/life-noc.conf
Normal file
9
icinga/hosts/life-noc.conf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
object Host "life-noc" {
|
||||
|
||||
import "generic-host"
|
||||
|
||||
address = "127.0.0.1"
|
||||
|
||||
vars.type = "life-noc"
|
||||
|
||||
}
|
||||
105
icinga/servicegroups/life-noc.conf
Normal file
105
icinga/servicegroups/life-noc.conf
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - SERVICE GROUPS
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
object ServiceGroup "REVUE" {
|
||||
display_name = "REVUE"
|
||||
}
|
||||
|
||||
object ServiceGroup "FOCUS" {
|
||||
display_name = "FOCUS"
|
||||
}
|
||||
|
||||
object ServiceGroup "FINANCES-PERSONNELLES" {
|
||||
display_name = "FINANCES-PERSONNELLES"
|
||||
}
|
||||
|
||||
object ServiceGroup "FISCALITE-PERSONNELLE" {
|
||||
display_name = "FISCALITE-PERSONNELLE"
|
||||
}
|
||||
|
||||
object ServiceGroup "OBLIGATIONS-LEGALES-PERSONNELLES" {
|
||||
display_name = "OBLIGATIONS-LEGALES-PERSONNELLES"
|
||||
}
|
||||
|
||||
object ServiceGroup "MAISON" {
|
||||
display_name = "MAISON"
|
||||
}
|
||||
|
||||
object ServiceGroup "GARAGE-ET-RANGEMENT" {
|
||||
display_name = "GARAGE-ET-RANGEMENT"
|
||||
}
|
||||
|
||||
object ServiceGroup "ENERGIE" {
|
||||
display_name = "ENERGIE"
|
||||
}
|
||||
|
||||
object ServiceGroup "RESILIENCE" {
|
||||
display_name = "RESILIENCE"
|
||||
}
|
||||
|
||||
object ServiceGroup "STOCK-ALIMENTAIRE" {
|
||||
display_name = "STOCK-ALIMENTAIRE"
|
||||
}
|
||||
|
||||
object ServiceGroup "SANTE" {
|
||||
display_name = "SANTE"
|
||||
}
|
||||
|
||||
object ServiceGroup "VOITURE" {
|
||||
display_name = "VOITURE"
|
||||
}
|
||||
|
||||
object ServiceGroup "JARDIN" {
|
||||
display_name = "JARDIN"
|
||||
}
|
||||
|
||||
object ServiceGroup "OUTILS-ET-EQUIPEMENTS" {
|
||||
display_name = "OUTILS-ET-EQUIPEMENTS"
|
||||
}
|
||||
|
||||
object ServiceGroup "INFORMATIQUE-PERSONNELLE" {
|
||||
display_name = "INFORMATIQUE-PERSONNELLE"
|
||||
}
|
||||
|
||||
object ServiceGroup "INFRASTRUCTURE-CHEZLEPRO" {
|
||||
display_name = "INFRASTRUCTURE-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "RESEAU-CHEZLEPRO" {
|
||||
display_name = "RESEAU-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "SECURITE-CHEZLEPRO" {
|
||||
display_name = "SECURITE-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "EXPLOITATION-CHEZLEPRO" {
|
||||
display_name = "EXPLOITATION-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "OBLIGATIONS-CHEZLEPRO" {
|
||||
display_name = "OBLIGATIONS-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "ACTIFS-CHEZLEPRO" {
|
||||
display_name = "ACTIFS-CHEZLEPRO"
|
||||
}
|
||||
|
||||
object ServiceGroup "PROJETS" {
|
||||
display_name = "PROJETS"
|
||||
}
|
||||
|
||||
object ServiceGroup "COMMUNAUTE" {
|
||||
display_name = "COMMUNAUTE"
|
||||
}
|
||||
|
||||
object ServiceGroup "DOCUMENTATION" {
|
||||
display_name = "DOCUMENTATION"
|
||||
}
|
||||
|
||||
object ServiceGroup "ANIMAUX" {
|
||||
display_name = "ANIMAUX"
|
||||
}
|
||||
87
icinga/services/actifs-chezlepro.conf
Normal file
87
icinga/services/actifs-chezlepro.conf
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: actifs-chezlepro
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "actifs-chezlepro-revision-inventaire-materiel" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/actifs-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "revision-inventaire-materiel"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-inventaire-materiel"
|
||||
groups = [ "ACTIFS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revoir l'inventaire du matériel de Chezlepro"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/actifs-chezlepro/revision-inventaire-materiel"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "actifs-chezlepro-verification-amortissables" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ACTIFS-CHEZLEPRO" ]
|
||||
notes = "Vérifier le registre des biens amortissables"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/actifs-chezlepro/verification-amortissables"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "actifs-chezlepro-verification-serveurs-et-composants" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/actifs-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-serveurs-et-composants"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-serveurs-et-composants"
|
||||
groups = [ "ACTIFS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier l'état des serveurs et composants matériels"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/actifs-chezlepro/verification-serveurs-et-composants"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "actifs-chezlepro-verification-reserve-pieces" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ACTIFS-CHEZLEPRO" ]
|
||||
notes = "Vérifier les pièces de rechange critiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/actifs-chezlepro/verification-reserve-pieces"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "actifs-chezlepro-revision-actifs-transferts" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/actifs-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "revision-actifs-transferts"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-actifs-transferts"
|
||||
groups = [ "ACTIFS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Réviser les actifs transférés ou à transférer à l'entreprise"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/actifs-chezlepro/revision-actifs-transferts"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
47
icinga/services/animaux.conf
Normal file
47
icinga/services/animaux.conf
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: animaux
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "animaux-verification-stock-nourriture-chats" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ANIMAUX" ]
|
||||
notes = "Vérification du stock de nourriture pour chats"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/animaux/verification-stock-nourriture-chats"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "animaux-verification-friandises-et-litiere" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ANIMAUX" ]
|
||||
notes = "Vérification des stocks de friandises et de litière"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/animaux/verification-friandises-et-litiere"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "animaux-revision-routine-soins-animaux" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/animaux.yaml"
|
||||
vars.life_noc_item_key = "revision-routine-soins-animaux"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-routine-soins-animaux"
|
||||
groups = [ "ANIMAUX" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue de la routine de soins et des besoins matériels des chats"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/animaux/revision-routine-soins-animaux"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
105
icinga/services/communaute.conf
Normal file
105
icinga/services/communaute.conf
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: communaute
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "communaute-verification-outils-aa" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/communaute.yaml"
|
||||
vars.life_noc_item_key = "verification-outils-aa"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-outils-aa"
|
||||
groups = [ "COMMUNAUTE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les outils numériques liés aux activités communautaires"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/communaute/verification-outils-aa"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "communaute-verification-espace-87-16" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/communaute.yaml"
|
||||
vars.life_noc_item_key = "verification-espace-87-16"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-espace-87-16"
|
||||
groups = [ "COMMUNAUTE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier l'espace Nextcloud du district"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/communaute/verification-espace-87-16"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "communaute-verification-salles-visio-groupes" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/communaute.yaml"
|
||||
vars.life_noc_item_key = "verification-salles-visio-groupes"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-salles-visio-groupes"
|
||||
groups = [ "COMMUNAUTE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les salles de visioconférence des groupes"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/communaute/verification-salles-visio-groupes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "communaute-verification-depots-rapports-rsg" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/communaute.yaml"
|
||||
vars.life_noc_item_key = "verification-depots-rapports-rsg"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-depots-rapports-rsg"
|
||||
groups = [ "COMMUNAUTE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les dépôts de rapports RSG"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/communaute/verification-depots-rapports-rsg"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "communaute-revision-outils-communication-communaute" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/communaute.yaml"
|
||||
vars.life_noc_item_key = "revision-outils-communication-communaute"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-outils-communication-communaute"
|
||||
groups = [ "COMMUNAUTE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Réviser les moyens de communication communautaires"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/communaute/revision-outils-communication-communaute"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
85
icinga/services/documentation.conf
Normal file
85
icinga/services/documentation.conf
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: documentation
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "documentation-revue-docs-personnelles-importantes" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/documentation.yaml"
|
||||
vars.life_noc_item_key = "revue-docs-personnelles-importantes"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-docs-personnelles-importantes"
|
||||
groups = [ "DOCUMENTATION" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revoir l'organisation des documents personnels importants"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/documentation/revue-docs-personnelles-importantes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "documentation-revue-wiki-technique" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/documentation.yaml"
|
||||
vars.life_noc_item_key = "revue-wiki-technique"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-wiki-technique"
|
||||
groups = [ "DOCUMENTATION" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revoir le wiki technique et sa cohérence"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/documentation/revue-wiki-technique"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "documentation-revue-base-connaissances" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/documentation.yaml"
|
||||
vars.life_noc_item_key = "revue-base-connaissances"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-base-connaissances"
|
||||
groups = [ "DOCUMENTATION" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revoir la base de connaissances globale"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/documentation/revue-base-connaissances"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "documentation-verification-sauvegarde-docs-cles" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/documentation.yaml"
|
||||
vars.life_noc_item_key = "verification-sauvegarde-docs-cles"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-sauvegarde-docs-cles"
|
||||
groups = [ "DOCUMENTATION" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier la sauvegarde des documents clés"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/documentation/verification-sauvegarde-docs-cles"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
198
icinga/services/energie.conf
Normal file
198
icinga/services/energie.conf
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: energie
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "energie-inspection-batteries-lifepo4" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "inspection-batteries-lifepo4"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-batteries-lifepo4"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection physique et logique des batteries LiFePO4"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/inspection-batteries-lifepo4"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-tension-batteries" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-03-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ENERGIE" ]
|
||||
notes = "Vérification des tensions et cohérence des batteries"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-tension-batteries"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-smartshunt" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-03-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ENERGIE" ]
|
||||
notes = "Vérification SmartShunt et cohérence du monitoring"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-smartshunt"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-cerbo-gx" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-03-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "ENERGIE" ]
|
||||
notes = "Vérification Cerbo GX et remontée des données"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-cerbo-gx"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-can-rs485" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "verification-can-rs485"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-can-rs485"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des communications CAN ou RS485"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-can-rs485"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-inspection-cablage-energie" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "inspection-cablage-energie"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-cablage-energie"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection du câblage et des connexions énergétiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/inspection-cablage-energie"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-busbars" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "verification-busbars"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-busbars"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du serrage, corrosion et échauffement des busbars"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-busbars"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-parametres-charge" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "verification-parametres-charge"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-parametres-charge"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des paramètres de charge et float"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-parametres-charge"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-test-charge-batteries" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "test-charge-batteries"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "test-charge-batteries"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Test de comportement en charge des batteries"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/test-charge-batteries"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-test-comportement-onduleur" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "test-comportement-onduleur"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "test-comportement-onduleur"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier le comportement du Multiplus sous charge légère"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/test-comportement-onduleur"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "energie-verification-journal-evenements-victron" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/energie.yaml"
|
||||
vars.life_noc_item_key = "verification-journal-evenements-victron"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-journal-evenements-victron"
|
||||
groups = [ "ENERGIE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des événements et anomalies Victron"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/energie/verification-journal-evenements-victron"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
125
icinga/services/exploitation-chezlepro.conf
Normal file
125
icinga/services/exploitation-chezlepro.conf
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: exploitation-chezlepro
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "exploitation-chezlepro-revision-playbooks-ansible" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "revision-playbooks-ansible"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-playbooks-ansible"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue des playbooks Ansible"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/revision-playbooks-ansible"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "exploitation-chezlepro-verification-inventaires-ansible" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-inventaires-ansible"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-inventaires-ansible"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des inventaires Ansible"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/verification-inventaires-ansible"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "exploitation-chezlepro-revision-documentation-technique" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "revision-documentation-technique"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-documentation-technique"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue de la documentation technique Chezlepro"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/revision-documentation-technique"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "exploitation-chezlepro-verification-procedures-reprise" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-procedures-reprise"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-procedures-reprise"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les procédures de reprise et restauration"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/verification-procedures-reprise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "exploitation-chezlepro-revue-capacite-ressources" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "revue-capacite-ressources"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-capacite-ressources"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue CPU RAM stockage et charge de l'infrastructure"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/revue-capacite-ressources"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "exploitation-chezlepro-verification-jobs-automatises" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/exploitation-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-jobs-automatises"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-jobs-automatises"
|
||||
groups = [ "EXPLOITATION-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des jobs automatisés et scripts périodiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/exploitation-chezlepro/verification-jobs-automatises"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
185
icinga/services/finances-personnelles.conf
Normal file
185
icinga/services/finances-personnelles.conf
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: finances-personnelles
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "finances-personnelles-revision-comptes-bancaires" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "revision-comptes-bancaires"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-comptes-bancaires"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision mensuelle des comptes bancaires personnels"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/revision-comptes-bancaires"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-verification-cartes-credit" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-cartes-credit"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-cartes-credit"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des soldes et transactions des cartes de crédit"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/verification-cartes-credit"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-paiement-cartes-credit" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "paiement-cartes-credit"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "paiement-cartes-credit"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Paiement des cartes de crédit personnelles"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/paiement-cartes-credit"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-revision-budget-personnel" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "revision-budget-personnel"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-budget-personnel"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision mensuelle du budget personnel"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/revision-budget-personnel"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-verification-prelevements-automatiques" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-prelevements-automatiques"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-prelevements-automatiques"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des prélèvements automatiques personnels"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/verification-prelevements-automatiques"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-verification-placements" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-placements"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-placements"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification périodique des placements et comptes enregistrés"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/verification-placements"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-verification-cotisations-reer" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-cotisations-reer"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-cotisations-reer"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "5"
|
||||
vars.life_noc_threshold_ok_gte = "5"
|
||||
vars.life_noc_threshold_warning_gte = "7"
|
||||
vars.life_noc_threshold_critical_gte = "10"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des cotisations REER"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/verification-cotisations-reer"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-verification-celi" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-celi"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-celi"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de l'espace CELI et de son utilisation"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/verification-celi"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "finances-personnelles-preparation-dossier-financier-annuel" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/finances-personnelles.yaml"
|
||||
vars.life_noc_item_key = "preparation-dossier-financier-annuel"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "preparation-dossier-financier-annuel"
|
||||
groups = [ "FINANCES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "300"
|
||||
vars.life_noc_threshold_ok_gte = "300"
|
||||
vars.life_noc_threshold_warning_gte = "365"
|
||||
vars.life_noc_threshold_critical_gte = "395"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Préparer le dossier financier annuel personnel"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/finances-personnelles/preparation-dossier-financier-annuel"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
109
icinga/services/fiscalite-personnelle.conf
Normal file
109
icinga/services/fiscalite-personnelle.conf
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: fiscalite-personnelle
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "fiscalite-personnelle-preparation-documents-impots" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/fiscalite-personnelle.yaml"
|
||||
vars.life_noc_item_key = "preparation-documents-impots"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "preparation-documents-impots"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "5"
|
||||
vars.life_noc_threshold_ok_gte = "5"
|
||||
vars.life_noc_threshold_warning_gte = "7"
|
||||
vars.life_noc_threshold_critical_gte = "10"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Rassembler tous les documents fiscaux personnels"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/preparation-documents-impots"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-production-impots-federal" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-30"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
notes = "Produire la déclaration de revenus fédérale"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/production-impots-federal"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-production-impots-quebec" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-30"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
notes = "Produire la déclaration de revenus Québec"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/production-impots-quebec"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-paiement-solde-impots" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-30"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
notes = "Payer tout solde d'impôt exigible"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/paiement-solde-impots"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-verification-avis-cotisation" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/fiscalite-personnelle.yaml"
|
||||
vars.life_noc_item_key = "verification-avis-cotisation"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-avis-cotisation"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les avis de cotisation ARC et Revenu Québec"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/verification-avis-cotisation"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-archivage-documents-fiscaux" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/fiscalite-personnelle.yaml"
|
||||
vars.life_noc_item_key = "archivage-documents-fiscaux"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "archivage-documents-fiscaux"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Archiver les documents fiscaux personnels"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/archivage-documents-fiscaux"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "fiscalite-personnelle-verification-acomptes-provisionnels" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-03-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "FISCALITE-PERSONNELLE" ]
|
||||
notes = "Vérifier si des acomptes provisionnels sont requis"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/fiscalite-personnelle/verification-acomptes-provisionnels"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
65
icinga/services/focus.conf
Normal file
65
icinga/services/focus.conf
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: focus
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "focus-entretien-processus-focus" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/focus.yaml"
|
||||
vars.life_noc_item_key = "entretien-processus-focus"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-processus-focus"
|
||||
groups = [ "FOCUS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "5"
|
||||
vars.life_noc_threshold_ok_gte = "5"
|
||||
vars.life_noc_threshold_warning_gte = "7"
|
||||
vars.life_noc_threshold_critical_gte = "10"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier que les cartouches FOCUS sont à jour"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/focus/entretien-processus-focus"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "focus-nettoyage-inbox-mentale" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/focus.yaml"
|
||||
vars.life_noc_item_key = "nettoyage-inbox-mentale"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "nettoyage-inbox-mentale"
|
||||
groups = [ "FOCUS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "5"
|
||||
vars.life_noc_threshold_ok_gte = "5"
|
||||
vars.life_noc_threshold_warning_gte = "7"
|
||||
vars.life_noc_threshold_critical_gte = "10"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vider et clarifier les éléments capturés hors système"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/focus/nettoyage-inbox-mentale"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "focus-revue-limitation-engagements" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/focus.yaml"
|
||||
vars.life_noc_item_key = "revue-limitation-engagements"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-limitation-engagements"
|
||||
groups = [ "FOCUS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier que les engagements actifs demeurent réalistes"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/focus/revue-limitation-engagements"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
105
icinga/services/garage-et-rangement.conf
Normal file
105
icinga/services/garage-et-rangement.conf
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: garage-et-rangement
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "garage-et-rangement-inspection-rangement-plafond" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/garage-et-rangement.yaml"
|
||||
vars.life_noc_item_key = "inspection-rangement-plafond"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-rangement-plafond"
|
||||
groups = [ "GARAGE-ET-RANGEMENT" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des supports suspendus au plafond du garage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/garage-et-rangement/inspection-rangement-plafond"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "garage-et-rangement-revue-inventaire-garage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/garage-et-rangement.yaml"
|
||||
vars.life_noc_item_key = "revue-inventaire-garage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-inventaire-garage"
|
||||
groups = [ "GARAGE-ET-RANGEMENT" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue de l'inventaire et de l'ordre du garage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/garage-et-rangement/revue-inventaire-garage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "garage-et-rangement-verification-rouille-outillage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/garage-et-rangement.yaml"
|
||||
vars.life_noc_item_key = "verification-rouille-outillage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-rouille-outillage"
|
||||
groups = [ "GARAGE-ET-RANGEMENT" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de la corrosion sur les outils et équipements"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/garage-et-rangement/verification-rouille-outillage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "garage-et-rangement-inspection-securite-garage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/garage-et-rangement.yaml"
|
||||
vars.life_noc_item_key = "inspection-securite-garage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-securite-garage"
|
||||
groups = [ "GARAGE-ET-RANGEMENT" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des conditions de sécurité du garage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/garage-et-rangement/inspection-securite-garage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "garage-et-rangement-rotation-stockage-bacs" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/garage-et-rangement.yaml"
|
||||
vars.life_noc_item_key = "rotation-stockage-bacs"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "rotation-stockage-bacs"
|
||||
groups = [ "GARAGE-ET-RANGEMENT" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue des contenus de bacs de rangement"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/garage-et-rangement/rotation-stockage-bacs"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
105
icinga/services/informatique-personnelle.conf
Normal file
105
icinga/services/informatique-personnelle.conf
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: informatique-personnelle
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "informatique-personnelle-verification-sauvegardes-personnelles" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/informatique-personnelle.yaml"
|
||||
vars.life_noc_item_key = "verification-sauvegardes-personnelles"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-sauvegardes-personnelles"
|
||||
groups = [ "INFORMATIQUE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des sauvegardes personnelles"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/informatique-personnelle/verification-sauvegardes-personnelles"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "informatique-personnelle-nettoyage-stockage-personnel" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/informatique-personnelle.yaml"
|
||||
vars.life_noc_item_key = "nettoyage-stockage-personnel"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "nettoyage-stockage-personnel"
|
||||
groups = [ "INFORMATIQUE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Nettoyage du stockage numérique personnel"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/informatique-personnelle/nettoyage-stockage-personnel"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "informatique-personnelle-verification-comptes-importants" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/informatique-personnelle.yaml"
|
||||
vars.life_noc_item_key = "verification-comptes-importants"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-comptes-importants"
|
||||
groups = [ "INFORMATIQUE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des comptes numériques personnels importants"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/informatique-personnelle/verification-comptes-importants"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "informatique-personnelle-revue-mots-de-passe-personnels" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/informatique-personnelle.yaml"
|
||||
vars.life_noc_item_key = "revue-mots-de-passe-personnels"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revue-mots-de-passe-personnels"
|
||||
groups = [ "INFORMATIQUE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue des mots de passe personnels critiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/informatique-personnelle/revue-mots-de-passe-personnels"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "informatique-personnelle-verification-documents-cloud-personnels" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/informatique-personnelle.yaml"
|
||||
vars.life_noc_item_key = "verification-documents-cloud-personnels"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-documents-cloud-personnels"
|
||||
groups = [ "INFORMATIQUE-PERSONNELLE" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier la cohérence des documents personnels sauvegardés"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/informatique-personnelle/verification-documents-cloud-personnels"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
238
icinga/services/infrastructure-chezlepro.conf
Normal file
238
icinga/services/infrastructure-chezlepro.conf
Normal file
|
|
@ -0,0 +1,238 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: infrastructure-chezlepro
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-proxmox" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-proxmox"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-proxmox"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification générale de l'environnement Proxmox"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-proxmox"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-ceph" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
notes = "Vérification générale de l'état Ceph"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-ceph"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-test-restauration-backups" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "test-restauration-backups"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "test-restauration-backups"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Test de restauration des sauvegardes"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/test-restauration-backups"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-pbs-truenas" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-pbs-truenas"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-pbs-truenas"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des solutions de sauvegarde et synchronisation"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-pbs-truenas"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-ups-infrastructure" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
notes = "Vérification des UPS de l'infrastructure"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-ups-infrastructure"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-capacite-stockage" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
notes = "Vérifier capacité et croissance du stockage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-capacite-stockage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-apt-cacher-ng" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-apt-cacher-ng"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-apt-cacher-ng"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du bon fonctionnement d'apt-cacher-ng"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-apt-cacher-ng"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-icinga2" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-icinga2"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-icinga2"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de la supervision Icinga2"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-icinga2"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-keycloak-openldap" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-keycloak-openldap"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-keycloak-openldap"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de l'identité et de l'authentification centralisées"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-keycloak-openldap"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-nextcloud" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-nextcloud"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-nextcloud"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de l'état Nextcloud"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-nextcloud"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-mailcow" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-mailcow"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-mailcow"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de l'infrastructure Mailcow"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-mailcow"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-openvas" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-openvas"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-openvas"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de la plateforme OpenVAS"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-openvas"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "infrastructure-chezlepro-verification-journaux-systemes" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/infrastructure-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-journaux-systemes"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-journaux-systemes"
|
||||
groups = [ "INFRASTRUCTURE-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue des journaux systèmes critiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/infrastructure-chezlepro/verification-journaux-systemes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
187
icinga/services/jardin.conf
Normal file
187
icinga/services/jardin.conf
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: jardin
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "jardin-inspection-vignes" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "inspection-vignes"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-vignes"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection et entretien des vignes"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/inspection-vignes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-entretien-bleuetiers" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "entretien-bleuetiers"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-bleuetiers"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Entretien des bleuetiers"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/entretien-bleuetiers"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-entretien-framboisiers" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "entretien-framboisiers"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-framboisiers"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Entretien des framboisiers"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/entretien-framboisiers"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-inspection-kiwis-nordiques" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "inspection-kiwis-nordiques"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-kiwis-nordiques"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des kiwis nordiques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/inspection-kiwis-nordiques"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-entretien-rhubarbe" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "entretien-rhubarbe"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-rhubarbe"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Entretien de la rhubarbe"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/entretien-rhubarbe"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-inspection-groseillier" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "inspection-groseillier"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-groseillier"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection du groseillier"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/inspection-groseillier"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-inspection-muriers" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "inspection-muriers"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-muriers"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection des mûriers"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/inspection-muriers"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-entretien-houblon" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/jardin.yaml"
|
||||
vars.life_noc_item_key = "entretien-houblon"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-houblon"
|
||||
groups = [ "JARDIN" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification et entretien du houblon"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/entretien-houblon"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-revision-pharmacopée-jardin" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-05-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "JARDIN" ]
|
||||
notes = "Vérification du stock de soins pour végétaux"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/revision-pharmacopée-jardin"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "jardin-revision-armoire-produits-jardin" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-05-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "JARDIN" ]
|
||||
notes = "Vérification et ordre de l'armoire des produits pour végétaux"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/jardin/revision-armoire-produits-jardin"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
316
icinga/services/maison.conf
Normal file
316
icinga/services/maison.conf
Normal file
|
|
@ -0,0 +1,316 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: maison
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "maison-remplacement-filtre-fournaise" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "remplacement-filtre-fournaise"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "remplacement-filtre-fournaise"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Remplacer le filtre de la fournaise"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/remplacement-filtre-fournaise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-fournaise" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-fournaise"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-fournaise"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection générale de la fournaise avant saison froide"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-fournaise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-thermopompe" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-thermopompe"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-thermopompe"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection et entretien de la thermopompe"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-thermopompe"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-nettoyage-unites-exterieures" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "nettoyage-unites-exterieures"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "nettoyage-unites-exterieures"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Nettoyer les unités extérieures et vérifier le dégagement"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/nettoyage-unites-exterieures"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-toiture" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-toiture"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-toiture"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection annuelle de la toiture"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-toiture"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-gouttieres" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-gouttieres"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-gouttieres"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection et nettoyage des gouttières"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-gouttieres"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-fondation" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-fondation"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-fondation"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Inspection de la fondation et des fissures"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-fondation"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-verification-drainage-terrain" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "verification-drainage-terrain"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-drainage-terrain"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du drainage autour de la maison"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/verification-drainage-terrain"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-test-detecteurs-fumee" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "test-detecteurs-fumee"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "test-detecteurs-fumee"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Test des détecteurs de fumée"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/test-detecteurs-fumee"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-test-detecteurs-co" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "test-detecteurs-co"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "test-detecteurs-co"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Test des détecteurs de monoxyde de carbone"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/test-detecteurs-co"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-remplacement-piles-detecteurs" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "remplacement-piles-detecteurs"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "remplacement-piles-detecteurs"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Remplacement préventif des piles des détecteurs"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/remplacement-piles-detecteurs"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-verification-plomberie-visible" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "verification-plomberie-visible"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-plomberie-visible"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification visuelle de la plomberie accessible"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/verification-plomberie-visible"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-sump-pump" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-sump-pump"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-sump-pump"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de la pompe de puisard si applicable"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-sump-pump"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-verification-calfetrage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "verification-calfetrage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-calfetrage"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du calfeutrage portes et fenêtres"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/verification-calfetrage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-inspection-portes-garage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/maison.yaml"
|
||||
vars.life_noc_item_key = "inspection-portes-garage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-portes-garage"
|
||||
groups = [ "MAISON" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification mécanique et sécurité des portes de garage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/inspection-portes-garage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "maison-verification-extincteurs" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "MAISON" ]
|
||||
notes = "Vérification des extincteurs"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/maison/verification-extincteurs"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
129
icinga/services/obligations-chezlepro.conf
Normal file
129
icinga/services/obligations-chezlepro.conf
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: obligations-chezlepro
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "obligations-chezlepro-verification-registraire-entreprise" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
notes = "Vérifier les obligations au Registraire des entreprises"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-registraire-entreprise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-declarations-taxes" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-30"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
notes = "Vérifier les obligations de taxes de l'entreprise si applicables"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-declarations-taxes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-dossier-comptable-entreprise" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-dossier-comptable-entreprise"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-dossier-comptable-entreprise"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier l'ordre du dossier comptable Chezlepro"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-dossier-comptable-entreprise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-facturation-clients" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-facturation-clients"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-facturation-clients"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier la facturation et son suivi"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-facturation-clients"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-paiements-fournisseurs" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-paiements-fournisseurs"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-paiements-fournisseurs"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les paiements fournisseurs"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-paiements-fournisseurs"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-contrats-ententes" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-05-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
notes = "Vérifier contrats, ententes et obligations associées"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-contrats-ententes"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-verification-assurances-entreprise" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
notes = "Vérifier les assurances de l'entreprise"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-assurances-entreprise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-chezlepro-archivage-documents-entreprise" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "archivage-documents-entreprise"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "archivage-documents-entreprise"
|
||||
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Archiver les documents administratifs et financiers de l'entreprise"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/archivage-documents-entreprise"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
127
icinga/services/obligations-legales-personnelles.conf
Normal file
127
icinga/services/obligations-legales-personnelles.conf
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: obligations-legales-personnelles
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-testament" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-legales-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-testament"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-testament"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier la pertinence et l'actualité du testament"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-testament"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-mandat-inaptitude" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-legales-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-mandat-inaptitude"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-mandat-inaptitude"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier le mandat de protection et documents connexes"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-mandat-inaptitude"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-directives-medicales" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-legales-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-directives-medicales"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-directives-medicales"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "150"
|
||||
vars.life_noc_threshold_ok_gte = "150"
|
||||
vars.life_noc_threshold_warning_gte = "180"
|
||||
vars.life_noc_threshold_critical_gte = "210"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier les directives médicales anticipées"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-directives-medicales"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-papiers-identite" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-legales-personnelles.yaml"
|
||||
vars.life_noc_item_key = "verification-papiers-identite"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-papiers-identite"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier l'expiration des papiers d'identité"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-papiers-identite"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-renouvellement-permis-conduire" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "days_until_due"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/obligations-legales-personnelles.yaml"
|
||||
vars.life_noc_item_key = "renouvellement-permis-conduire"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "renouvellement-permis-conduire"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
vars.life_noc_threshold_unknown_gte = "90"
|
||||
vars.life_noc_threshold_ok_lt = "90"
|
||||
vars.life_noc_threshold_warning_lt = "30"
|
||||
vars.life_noc_threshold_critical_lt = "7"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier la proximité de l’échéance du permis"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/renouvellement-permis-conduire"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-carte-assurance-maladie" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-10-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
notes = "Vérifier l'expiration de la carte d'assurance maladie"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-carte-assurance-maladie"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "obligations-legales-personnelles-verification-passeport" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "OBLIGATIONS-LEGALES-PERSONNELLES" ]
|
||||
notes = "Vérifier l'expiration du passeport"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-legales-personnelles/verification-passeport"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
105
icinga/services/outils-et-equipements.conf
Normal file
105
icinga/services/outils-et-equipements.conf
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: outils-et-equipements
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "outils-et-equipements-entretien-outils-jardin" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/outils-et-equipements.yaml"
|
||||
vars.life_noc_item_key = "entretien-outils-jardin"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "entretien-outils-jardin"
|
||||
groups = [ "OUTILS-ET-EQUIPEMENTS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Nettoyage et entretien des outils de jardin"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/outils-et-equipements/entretien-outils-jardin"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "outils-et-equipements-inspection-outils-electriques" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/outils-et-equipements.yaml"
|
||||
vars.life_noc_item_key = "inspection-outils-electriques"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "inspection-outils-electriques"
|
||||
groups = [ "OUTILS-ET-EQUIPEMENTS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des outils électriques"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/outils-et-equipements/inspection-outils-electriques"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "outils-et-equipements-verification-rallonges-et-connecteurs" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/outils-et-equipements.yaml"
|
||||
vars.life_noc_item_key = "verification-rallonges-et-connecteurs"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-rallonges-et-connecteurs"
|
||||
groups = [ "OUTILS-ET-EQUIPEMENTS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des rallonges et connecteurs"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/outils-et-equipements/verification-rallonges-et-connecteurs"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "outils-et-equipements-verification-compresseur-et-accessoires" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/outils-et-equipements.yaml"
|
||||
vars.life_noc_item_key = "verification-compresseur-et-accessoires"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-compresseur-et-accessoires"
|
||||
groups = [ "OUTILS-ET-EQUIPEMENTS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du compresseur et accessoires"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/outils-et-equipements/verification-compresseur-et-accessoires"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "outils-et-equipements-revision-inventaire-outillage" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/outils-et-equipements.yaml"
|
||||
vars.life_noc_item_key = "revision-inventaire-outillage"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-inventaire-outillage"
|
||||
groups = [ "OUTILS-ET-EQUIPEMENTS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Revue de l'inventaire d'outillage"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/outils-et-equipements/revision-inventaire-outillage"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
125
icinga/services/projets.conf
Normal file
125
icinga/services/projets.conf
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: projets
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "projets-revision-life-noc" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-life-noc"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-life-noc"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du projet Life-NOC"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-life-noc"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "projets-revision-alliance-boreale" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-alliance-boreale"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-alliance-boreale"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du projet Alliance Boréale"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-alliance-boreale"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "projets-revision-erplibre" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-erplibre"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-erplibre"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du projet ERPLibre"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-erplibre"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "projets-revision-semence-numerique" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-semence-numerique"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-semence-numerique"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du projet semence numérique"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-semence-numerique"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "projets-revision-ortrux-1" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-ortrux-1"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-ortrux-1"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du système Ortrux-1"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-ortrux-1"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "projets-revision-district16" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/projets.yaml"
|
||||
vars.life_noc_item_key = "revision-district16"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "revision-district16"
|
||||
groups = [ "PROJETS" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Révision du projet DISTRICT16"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/projets/revision-district16"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
187
icinga/services/reseau-chezlepro.conf
Normal file
187
icinga/services/reseau-chezlepro.conf
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
/*
|
||||
AUTO-GENERATED FILE - DOMAIN: reseau-chezlepro
|
||||
Ne pas modifier manuellement.
|
||||
Source: domains.yaml
|
||||
*/
|
||||
|
||||
apply Service "reseau-chezlepro-verification-firewalls" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-firewalls"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-firewalls"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des firewalls"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-firewalls"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-vpn-openvpn" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-vpn-openvpn"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-vpn-openvpn"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "20"
|
||||
vars.life_noc_threshold_ok_gte = "20"
|
||||
vars.life_noc_threshold_warning_gte = "31"
|
||||
vars.life_noc_threshold_critical_gte = "45"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des tunnels OpenVPN"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-vpn-openvpn"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-crl-certificats" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-04-15"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
notes = "Vérification de la CRL et des certificats"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-crl-certificats"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-switches" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-switches"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-switches"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification des switches et uplinks"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-switches"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-vlans-segmentation" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-vlans-segmentation"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-vlans-segmentation"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification de la segmentation réseau"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-vlans-segmentation"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-dns" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-dns"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-dns"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification DNS interne et externe"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-dns"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-dynamic-dns" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-dynamic-dns"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-dynamic-dns"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérification du DNS dynamique si utilisé"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-dynamic-dns"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-audit-regles-firewall" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "audit-regles-firewall"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "audit-regles-firewall"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Audit périodique des règles de firewall"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/audit-regles-firewall"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-geoblocking" {
|
||||
import "service_life_noc_probe"
|
||||
vars.life_noc_probe_type = "elapsed_time"
|
||||
vars.life_noc_source_type = "manual_date"
|
||||
vars.life_noc_source_value = ""
|
||||
vars.life_noc_inputs_file = "/opt/life-noc/data/inputs/reseau-chezlepro.yaml"
|
||||
vars.life_noc_item_key = "verification-geoblocking"
|
||||
vars.life_noc_metric_unit = "days"
|
||||
vars.life_noc_label = "verification-geoblocking"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
vars.life_noc_threshold_unknown_lt = "60"
|
||||
vars.life_noc_threshold_ok_gte = "60"
|
||||
vars.life_noc_threshold_warning_gte = "90"
|
||||
vars.life_noc_threshold_critical_gte = "120"
|
||||
vars.life_noc_on_error = "critical"
|
||||
notes = "Vérifier le geoblocking et son effet attendu"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-geoblocking"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
|
||||
apply Service "reseau-chezlepro-verification-certificats-publics" {
|
||||
import "service_echeance"
|
||||
vars.date_echeance = "2026-06-01"
|
||||
vars.mock_state = "OK"
|
||||
vars.mock_message = "Sous contrôle"
|
||||
groups = [ "RESEAU-CHEZLEPRO" ]
|
||||
notes = "Vérifier les expirations de certificats publics"
|
||||
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-certificats-publics"
|
||||
assign where host.name == "life-noc"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue