Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_nrpe could not connect to x.x.x.x, connection reset by peer error only on Docker host running the Nagios server #173

Open
JojoCon27 opened this issue Aug 21, 2024 · 0 comments

Comments

@JojoCon27
Copy link

JojoCon27 commented Aug 21, 2024

We have five (5) docker hosts [S1, S2, S3. S4 and S5) and have installed Nagios as a container/service. We are also utilizing the NRPE that came with the Nagios image. The NRPE agent have been installed on all 5 docker hosts. The nrpe_checks seems to work on ALL the docker host except for the one running the nagios server. So if nagios is running on docker host S5, the nrpe_checks works the other 4 host but fails on S5 with the error "could not connect to x.x.x.x, connection reset by peer". If the Nagios server is running on docker host S3, nrpe_checks fails on S3, and works on all the rest of the docker hosts.

I've tried running the command with the -n or --no-ssl option, but the checks still fails with "receive header underflow error.

We are running (the default version when the latest version of the nagios image was pulled):
Nagios Core v.4.5.2
NRPE 4.1.0

All docker hosts IP addresses are on the "only from" entries on the nrpe file on the agents.

Is there something I am missing? Any help will be greatly appreciated. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant