From 9ff615f19a3240a80c48c9d4ad2fdd1012624ec0 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Thu, 25 May 2023 16:02:27 +0200 Subject: [PATCH] nagios-nrpe: switch to echo (printf problem with % chars) --- nagios-nrpe/files/check-local | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nagios-nrpe/files/check-local b/nagios-nrpe/files/check-local index 8b045cb0..98c2f142 100755 --- a/nagios-nrpe/files/check-local +++ b/nagios-nrpe/files/check-local @@ -7,10 +7,11 @@ 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-) - printf "Command:\n $command\n" + echo "Command:" + echo " $command" fi -printf "NRPE daemon output:" +echo "NRPE daemon output:" /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c "check_$1"