Skip to content
Snippets Groups Projects
Commit 35f8aaee authored by Rémi - Le Filament's avatar Rémi - Le Filament
Browse files

[UPD] change variable name for odoo prod

parent b94758ca
Branches
No related tags found
No related merge requests found
...@@ -106,7 +106,8 @@ command[check_docker_cloud]=/usr/lib/nagios/custom-plugins/check_docker.sh --fil ...@@ -106,7 +106,8 @@ command[check_docker_cloud]=/usr/lib/nagios/custom-plugins/check_docker.sh --fil
{% endif %} {% endif %}
{% if inventory_hostname in groups.docker_odoo | default([]) %} {% if inventory_hostname in groups.docker_odoo | default([]) %}
{% for name, values in odoo_instances.items() %} {% for name, values in odoo_instances.items() %}
{% if values.is_prod is defined and values.is_prod %} {# if prod instance #}
{% if values.prod_instance | default(false) == name %}
command[check_docker_{{ name }}]=/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 %} {% else %}
command[check_docker_{{ name }}]=/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment