nagios-nrpe: set bind IP to 127.0.0.1 in monitoringctl for NRPEs that are configured to listen on a specific IP but this IP is not in allowed_hosts
This commit is contained in:
parent
4890bb2a94
commit
21b2fcb16c
|
@ -126,7 +126,7 @@ function check() {
|
|||
fi
|
||||
|
||||
if [ "${bypass_nrpe}" = "False" ]; then
|
||||
request_command="${check_nrpe_bin} -H ${server_address} -p ${server_port} -c check_${check} 2&>1"
|
||||
request_command="${check_nrpe_bin} -H ${server_address} -p ${server_port} -b 127.0.0.1 -c check_${check} 2&>1"
|
||||
else
|
||||
if [ -n "${check_command}" ]; then
|
||||
request_command="sudo -u nagios -- ${check_command}"
|
||||
|
|
Loading…
Reference in a new issue