From c6e887407d0da0b7450067e0f9e601770c8592bc Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Wed, 22 Feb 2017 09:20:34 +0100 Subject: [PATCH] test fichier de conf --- HowtoNagios.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoNagios.md b/HowtoNagios.md index 6dddc822..90dd8c66 100644 --- a/HowtoNagios.md +++ b/HowtoNagios.md @@ -2,6 +2,12 @@ * +## Faire tous les tests d'un fichier de conf + +~~~{.bash} +(while read line; do if [[ "$line" =~ ^command ]]; then echo $line; eval $(echo "$line" | cut -d'=' -f2); fi; done) < /etc/nagios/nrpe.d/tests.cfg +~~~ + ## FAQ ### priorité dans nrpe.d/ ?