WIP avant patch due_date

This commit is contained in:
Daniel Allaire 2026-03-16 19:56:04 -04:00
parent 9a505106f6
commit f23e3cc1b7
12 changed files with 3576 additions and 66 deletions

View file

@ -1,2 +1,2 @@
[icinga]
c7-life-noc-01 ansible_host=192.168.12.40 ansible_user=ansible
c7-life-noc-01 ansible_host=Life-NOC.chezlepro.ca ansible_user=ansible

View file

@ -28,7 +28,7 @@ INFRASTRUCTURE-CHEZLEPRO = life-noc;infrastructure-chezlepro-verification-proxmo
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
OBLIGATIONS-CHEZLEPRO = 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-registraire-entreprise & life-noc;obligations-chezlepro-verification-declarations-taxes & 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

View file

@ -1,15 +1,33 @@
verification-registraire-entreprise:
value: "2026-06-30"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
verification-declarations-taxes:
value: "2026-04-30"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
verification-assurances-entreprise:
value: "2026-10-01"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
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'

View file

@ -1,3 +1,7 @@
verification-certificats-publics:
value: "2026-06-15"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
verification-firewalls:
value: '2026-03-01'
captured_at: '2026-03-16T00:00:00Z'

View file

@ -1,3 +1,13 @@
verification-expiration-medicaments:
value: "2026-09-30"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
revision-rendez-vous-medicaux:
value: "2026-04-10"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
verification-dossier-sante:
value: '2026-03-17'
captured_at: '2026-03-16T00:00:00Z'

View file

@ -1,3 +1,7 @@
verification-immatriculation-assurance:
value: "2026-11-30"
captured_at: "2026-03-16T18:00:00Z"
origin: manual
verification-balais-essuie-glace:
value: '2026-01-31'
captured_at: '2026-03-16T00:00:00Z'

3207
domains (Copie).yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -1317,11 +1317,71 @@ domains:
date: 2026-04-01
notes: Vérification de la trousse de premiers soins
- name: verification-expiration-medicaments
date: 2026-05-01
notes: Vérification des dates d'expiration des médicaments
title: Vérification de lexpiration des médicaments
summary: Suivre la prochaine échéance dexpiration des médicaments importants.
notes: Mettre la plus proche date dexpiration pertinente.
instructions: '1. Vérifier les dates dexpiration des médicaments importants.
2. Retenir la date la plus proche.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/sante.yaml
item_key: verification-expiration-medicaments
metric:
unit: days
thresholds:
critical_lt: 30
warning_lt: 90
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-09-30'
- name: revision-rendez-vous-medicaux
date: 2026-04-15
notes: Revoir les rendez-vous médicaux requis
title: Révision des rendez-vous médicaux
summary: Suivre la prochaine date de rendez-vous médical.
notes: Entrer la prochaine date significative déjà connue.
instructions: '1. Identifier le prochain rendez-vous médical pertinent.
2. Vérifier la date retenue.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/sante.yaml
item_key: revision-rendez-vous-medicaux
metric:
unit: days
thresholds:
critical_lt: 2
warning_lt: 14
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-04-10'
- name: verification-lunettes-prescriptions
date: 2026-06-01
notes: Vérifier les prescriptions et besoins de renouvellement
@ -1414,8 +1474,38 @@ domains:
allow_complete: true
allow_manual_edit: true
- name: verification-immatriculation-assurance
date: 2026-06-01
notes: Vérification papiers d'assurance et immatriculation
title: Vérification immatriculation et assurance
summary: Suivre la prochaine échéance entre immatriculation et assurance.
notes: Retenir la date la plus proche à renouveler.
instructions: '1. Vérifier les dates déchéance de limmatriculation et de lassurance.
2. Retenir la plus rapprochée.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/voiture.yaml
item_key: verification-immatriculation-assurance
metric:
unit: days
thresholds:
critical_lt: 30
warning_lt: 90
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-11-30'
jardin:
- name: inspection-vignes
date: 2026-04-15
@ -2232,8 +2322,39 @@ domains:
allow_complete: true
allow_manual_edit: true
- name: verification-certificats-publics
date: 2026-06-01
notes: Vérifier les expirations de certificats publics
title: Vérification des certificats publics
summary: Suivre la prochaine échéance dun certificat public important.
notes: Retenir la date dexpiration la plus proche parmi les certificats publics
suivis.
instructions: '1. Vérifier les certificats publics critiques.
2. Retenir la date dexpiration la plus proche.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/reseau-chezlepro.yaml
item_key: verification-certificats-publics
metric:
unit: days
thresholds:
critical_lt: 15
warning_lt: 45
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-06-15'
securite-chezlepro:
- name: verification-mises-a-jour-securite
date: 2026-04-01
@ -2482,12 +2603,6 @@ domains:
allow_complete: true
allow_manual_edit: true
obligations-chezlepro:
- name: verification-registraire-entreprise
date: 2026-06-15
notes: Vérifier les obligations au Registraire des entreprises
- name: verification-declarations-taxes
date: 2026-04-30
notes: Vérifier les obligations de taxes de l'entreprise si applicables
- name: verification-dossier-comptable-entreprise
date: 2026-04-15
notes: Vérifier l'ordre du dossier comptable Chezlepro
@ -2557,9 +2672,105 @@ domains:
- name: verification-contrats-ententes
date: 2026-05-15
notes: Vérifier contrats, ententes et obligations associées
- name: verification-registraire-entreprise
title: Vérification registraire dentreprise
summary: Suivre la prochaine échéance liée au Registraire des entreprises.
notes: Entrer la prochaine date limite pertinente.
instructions: '1. Vérifier la prochaine échéance liée au Registraire.
2. Confirmer la date applicable.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/obligations-chezlepro.yaml
item_key: verification-registraire-entreprise
metric:
unit: days
thresholds:
critical_lt: 30
warning_lt: 90
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-06-30'
- name: verification-declarations-taxes
title: Vérification des déclarations de taxes
summary: Suivre la prochaine échéance de déclaration de taxes.
notes: Entrer la prochaine date limite applicable.
instructions: '1. Vérifier la prochaine échéance de déclaration de taxes.
2. Confirmer la date applicable.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/obligations-chezlepro.yaml
item_key: verification-declarations-taxes
metric:
unit: days
thresholds:
critical_lt: 15
warning_lt: 45
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-04-30'
- name: verification-assurances-entreprise
date: 2026-06-01
notes: Vérifier les assurances de l'entreprise
title: Vérification des assurances dentreprise
summary: Suivre la prochaine échéance de renouvellement dassurance.
notes: Entrer la date de renouvellement la plus proche.
instructions: '1. Vérifier les dates de renouvellement des assurances pertinentes.
2. Retenir la plus proche.
3. Entrer cette date dans Life-NOC.
'
notes_url: ''
instructions_url: ''
action_url: ''
probe:
type: days_until_due
source:
type: manual_date
inputs_file: /opt/life-noc/data/inputs/obligations-chezlepro.yaml
item_key: verification-assurances-entreprise
metric:
unit: days
thresholds:
critical_lt: 30
warning_lt: 90
ok_lt: 366
policy:
on_error: critical
ui:
form_mode: due_date
allow_complete: false
allow_manual_edit: true
date: '2026-10-01'
- name: archivage-documents-entreprise
date: 2026-05-31
notes: Archiver les documents administratifs et financiers de l'entreprise

View file

@ -4,28 +4,6 @@
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"
@ -97,13 +75,59 @@ apply Service "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"
apply Service "obligations-chezlepro-verification-registraire-entreprise" {
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-chezlepro.yaml"
vars.life_noc_item_key = "verification-registraire-entreprise"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-registraire-entreprise"
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
notes = "Vérifier les assurances de l'entreprise"
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "90"
vars.life_noc_threshold_critical_lt = "30"
vars.life_noc_on_error = "critical"
notes = "Entrer la prochaine date limite pertinente."
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_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-chezlepro.yaml"
vars.life_noc_item_key = "verification-declarations-taxes"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-declarations-taxes"
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "45"
vars.life_noc_threshold_critical_lt = "15"
vars.life_noc_on_error = "critical"
notes = "Entrer la prochaine date limite applicable."
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-assurances-entreprise" {
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-chezlepro.yaml"
vars.life_noc_item_key = "verification-assurances-entreprise"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-assurances-entreprise"
groups = [ "OBLIGATIONS-CHEZLEPRO" ]
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "90"
vars.life_noc_threshold_critical_lt = "30"
vars.life_noc_on_error = "critical"
notes = "Entrer la date de renouvellement la plus proche."
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/obligations-chezlepro/verification-assurances-entreprise"
assign where host.name == "life-noc"
}

View file

@ -176,12 +176,20 @@ apply Service "reseau-chezlepro-verification-geoblocking" {
}
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"
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/reseau-chezlepro.yaml"
vars.life_noc_item_key = "verification-certificats-publics"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-certificats-publics"
groups = [ "RESEAU-CHEZLEPRO" ]
notes = "Vérifier les expirations de certificats publics"
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "45"
vars.life_noc_threshold_critical_lt = "15"
vars.life_noc_on_error = "critical"
notes = "Retenir la date dexpiration la plus proche parmi les certificats publics suivis."
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/reseau-chezlepro/verification-certificats-publics"
assign where host.name == "life-noc"
}

View file

@ -16,23 +16,39 @@ apply Service "sante-verification-trousse-premiers-soins" {
}
apply Service "sante-verification-expiration-medicaments" {
import "service_echeance"
vars.date_echeance = "2026-05-01"
vars.mock_state = "OK"
vars.mock_message = "Sous contrôle"
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/sante.yaml"
vars.life_noc_item_key = "verification-expiration-medicaments"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-expiration-medicaments"
groups = [ "SANTE" ]
notes = "Vérification des dates d'expiration des médicaments"
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "90"
vars.life_noc_threshold_critical_lt = "30"
vars.life_noc_on_error = "critical"
notes = "Mettre la plus proche date dexpiration pertinente."
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/sante/verification-expiration-medicaments"
assign where host.name == "life-noc"
}
apply Service "sante-revision-rendez-vous-medicaux" {
import "service_echeance"
vars.date_echeance = "2026-04-15"
vars.mock_state = "OK"
vars.mock_message = "Sous contrôle"
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/sante.yaml"
vars.life_noc_item_key = "revision-rendez-vous-medicaux"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "revision-rendez-vous-medicaux"
groups = [ "SANTE" ]
notes = "Revoir les rendez-vous médicaux requis"
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "14"
vars.life_noc_threshold_critical_lt = "2"
vars.life_noc_on_error = "critical"
notes = "Entrer la prochaine date significative déjà connue."
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/sante/revision-rendez-vous-medicaux"
assign where host.name == "life-noc"
}

View file

@ -122,12 +122,20 @@ apply Service "voiture-verification-eclairage" {
}
apply Service "voiture-verification-immatriculation-assurance" {
import "service_echeance"
vars.date_echeance = "2026-06-01"
vars.mock_state = "OK"
vars.mock_message = "Sous contrôle"
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/voiture.yaml"
vars.life_noc_item_key = "verification-immatriculation-assurance"
vars.life_noc_metric_unit = "days"
vars.life_noc_label = "verification-immatriculation-assurance"
groups = [ "VOITURE" ]
notes = "Vérification papiers d'assurance et immatriculation"
vars.life_noc_threshold_ok_lt = "366"
vars.life_noc_threshold_warning_lt = "90"
vars.life_noc_threshold_critical_lt = "30"
vars.life_noc_on_error = "critical"
notes = "Retenir la date la plus proche à renouveler."
vars.instructions_url = "http://192.168.12.40:8787/life-noc/item/voiture/verification-immatriculation-assurance"
assign where host.name == "life-noc"
}