ansible-roles/nagios-nrpe/files/check-local

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