Permission denied connecting to port 5556

Hello,
I’m getting this error on the

connect to address x.x.x.x port 5666: Permission denied
connect to host correct.fqdn.my.domain port 5666: Permission denied

The check is based on NRPE and works well from the command line.

/usr/lib64/nagios/plugins/check_nrpe -H correct.fqdn.my.domain -c check_base_disk

config:

object Service “disk” {
import “generic-service”

host_name = “correct.fqdn.my.domain”

check_command = “nrpe”
vars.nrpe_command = “check_base_disk”
vars.nrpe_arguments = [ “20%”, “10%”, “/” ]
}

Can someone be kind enough to point out my error?

This was SELinux on the remote host.

1 Like

Hello there,

I would like to direct you to our formatting guide
It’s a lot more readable to have the config in code formatting :slight_smile: