From b94758ca978683497df2a868d8bcc3f78040ba25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com>
Date: Thu, 8 Jun 2023 12:32:44 +0200
Subject: [PATCH] fix(check_docker_odoo): nrpe command name

---
 templates/nrpe.cfg.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/nrpe.cfg.j2 b/templates/nrpe.cfg.j2
index 5c12efa..a4e8b86 100644
--- a/templates/nrpe.cfg.j2
+++ b/templates/nrpe.cfg.j2
@@ -107,9 +107,9 @@ command[check_docker_cloud]=/usr/lib/nagios/custom-plugins/check_docker.sh --fil
 {% if inventory_hostname in groups.docker_odoo | default([]) %}
 {% for name, values in odoo_instances.items() %}
 {% if values.is_prod is defined and values.is_prod %}
-command[check_docker_odoo]=/usr/lib/nagios/custom-plugins/check_docker.sh --filter '^{{ name }}($|_.*)' --cpu 10:15 --memory 35:45
+command[check_docker_{{ name }}]=/usr/lib/nagios/custom-plugins/check_docker.sh --filter '^{{ name }}($|_.*)' --cpu 10:15 --memory 35:45
 {% else %}
-command[check_docker_odoo]=/usr/lib/nagios/custom-plugins/check_docker.sh --filter '^{{ name }}($|_.*)' --cpu 10:15 --memory 20:25
+command[check_docker_{{ name }}]=/usr/lib/nagios/custom-plugins/check_docker.sh --filter '^{{ name }}($|_.*)' --cpu 10:15 --memory 20:25
 {% endif %}
 {% endfor %}
 {% if restrict_internet_access and whitelisted_urls is defined %}
-- 
GitLab