nagios-nrpe: switch to echo (printf problem with % chars)
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2788|8|2780|5|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/256//ansiblelint">Evolix » ansible-roles » unstable #256</a>
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2788|8|2780|5|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/256//ansiblelint">Evolix » ansible-roles » unstable #256</a>
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
5563b4f8f2
commit
9ff615f19a
|
@ -7,10 +7,11 @@ fi
|
||||||
|
|
||||||
if [ -r /etc/nagios/nrpe.d/evolix.cfg ]; then
|
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 | tail -n1 | cut -d'=' -f2-)
|
||||||
printf "Command:\n $command\n"
|
echo "Command:"
|
||||||
|
echo " $command"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "NRPE daemon output:"
|
echo "NRPE daemon output:"
|
||||||
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c "check_$1"
|
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c "check_$1"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue