-
Notifications
You must be signed in to change notification settings - Fork 283
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_http: Unchunking body fails when no body is present #1872
Comments
Adding !no_body to the if at line 1281 fixes it for me as well.
|
I will take a look at it. Until then, you could use |
It seems to me that the server is sending: (The server being IIS...) |
The problem is, that the parameter -N (--no-body) removes any kind of response after the header, but this commit seven months ago only reads the body and doesnt check, if the parameter --no-body is present. |
So, this is not a bug from the HTTP server (in my case an nginx). Its a bug in the way the new code for chunked content is handling requests when --no-body is defined. There is already a fix documented but not merged. |
@trickert76 your patch seems to fix the issue for me. Thanks! Maybe you should prepare a PR against https://github.com/monitoring-plugins/monitoring-plugins? #1806 suggest that maybe |
This should be fixed with #1901, isn't it? |
@waja I think it is, but I am not completely sure, that everything is handled correctly if the server sends an empty body and |
a6802bd is exactly what #1815 (comment) is suggesting. So if that's the only change that is needed, we don't need another PR. Can anybody having this issue please test |
@waja, I just built the code from It works fine after forcing a first check, but since the problem was not happening all the time in the past (at least in my case), please give me some time to confirm if it's fixed. |
@waja, after a few days, it works for me. So FMPOV, the bug report can be closed as solved. Thanks a lot! |
Also switch nginx to it. There's a bug in check_http monitoring-plugins/monitoring-plugins#1872.
Checks with -N / --no-body fail with 2.3.3
as mentioned in 1815
Adding
!no_body
to theif
as suggested fixes the problem for me.The text was updated successfully, but these errors were encountered: