ansible-roles/nagios-nrpe/files/check-local
William Hirigoyen 6ab34517b6
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2781|5|2776|5|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/249//ansiblelint">Evolix » ansible-roles » unstable #249</a>
gitea/ansible-roles/pipeline/head This commit looks good
nagios-nrpe: add a NRPE check-local command with completion
2023-05-12 12:35:49 +02:00

13 lines
251 B
Bash
Executable file

#!/usr/bin/bash
if ! test -f /usr/lib/nagios/plugins/check_nrpe; then
echo '/usr/lib/nagios/plugins/check_nrpe is missing, please install nagios-nrpe-plugin package.'
exit 1
fi
/usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_$1