-
Notifications
You must be signed in to change notification settings - Fork 60
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
NRPE: Unable to read output #60
Comments
not sure what is wrong. @timdaman |
any help will be appreciated. i am running python3 inside docker container and container will be treated as binary to get the health check |
Hi @thatsk The common cause for the error message "NRPE: Unable to read output" is a wrong plugin path in your nrpe.cfg but it could also be a interpreter issue. I for example had to change the shebang line at the very top of the plugin from
to
for the plugin to work. You could also run Have a look at this KB entry from nagios: https://support.nagios.com/kb/article/nrpe-nrpe-unable-to-read-output-620.html |
Sorry, I was busy with....life. @HigH-HawK, thanks for the observation. That sound plausible. Looking at the command output above I assume the one below is the NRPE command installed on the host being monitored.
I am guessing you installed check_docker in a image called I recommend try to manually run you docker image with no arguments and confirm it works, Please feel free to report back what you see in those tests and I will try to help. Also, sending me the Dockerfile for you |
Hey @timdaman I didn't have any issues, just tried helping the other user :) |
Hello, @timdaman I'm trying to integrate nagios and docker via your check_docker script and seeing error like this - "NRPE: unable to read output". |
Hi @Aeris126 Please could you check the file permissions of the check_docker file? Since you said, that if your are running the command from the machine itself, it works, I would imagine that the |
@HigH-HawK |
The permissions look ok. As for the return codes, the first one is the return code for the |
i was getting the same error command[check_docker]=/usr/local/bin/check_docker --containers --status running it worked for me |
The text was updated successfully, but these errors were encountered: