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/ ?