Skip to content
Extraits de code Groupes Projets
Valider cedf0bd5 rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

feat: allow nagios to run docker ps and stats

parent 2607dee5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -16,4 +16,7 @@ nagios ALL=NOPASSWD: /usr/bin/fail2ban-client status * ...@@ -16,4 +16,7 @@ nagios ALL=NOPASSWD: /usr/bin/fail2ban-client status *
nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * banip nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * banip
nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * banip --with-time nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * banip --with-time
nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * bantime nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * bantime
nagios ALL=NOPASSWD: /usr/bin/docker ps --format {{ '{{' }}.Names{{ '}}' }} --filter name=* --no-trunc --quiet --all
nagios ALL=NOPASSWD: /usr/bin/docker ps --format {{ '{{' }}.Names{{ '}}' }} --filter name=* --no-trunc --quiet
nagios ALL=NOPASSWD: /usr/bin/docker stats --format {{ '{{' }}.Name{{ '}}' }}\:{{ '{{' }}.CPUPerc{{ '}}' }}\:{{ '{{' }}.MemPerc{{ '}}' }} --no-stream
{% if inventory_hostname in groups.gitlab %}nagios ALL=NOPASSWD: /opt/gitlab/bin/gitlab-ctl status{% endif %} {% if inventory_hostname in groups.gitlab %}nagios ALL=NOPASSWD: /opt/gitlab/bin/gitlab-ctl status{% endif %}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter