From 64c1da40b0682404394d85559770060f09df10f6 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Wed, 21 Jun 2023 16:14:35 +0200 Subject: [PATCH] =?UTF-8?q?nagios-nrpe:=20corrige=20les=20cas=20o=C3=B9=20?= =?UTF-8?q?un=20check=20est=20d=C3=A9fini=20plusieurs=20fois=20ou=20commen?= =?UTF-8?q?t=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nagios-nrpe/files/check-local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios-nrpe/files/check-local b/nagios-nrpe/files/check-local index 98c2f142..40587425 100755 --- a/nagios-nrpe/files/check-local +++ b/nagios-nrpe/files/check-local @@ -6,7 +6,7 @@ if ! test -f /usr/lib/nagios/plugins/check_nrpe; then fi if [ -r /etc/nagios/nrpe.d/evolix.cfg ]; then - command=$(grep "check_$1" /etc/nagios/nrpe.d/evolix.cfg | tail -n1 | cut -d'=' -f2-) + command=$(grep "check_$1" /etc/nagios/nrpe.d/evolix.cfg | grep -v '^[[:blank:]]*#' | tail -n1 | cut -d'=' -f2-) echo "Command:" echo " $command" fi