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
Checking VictoriaMetrics health endpoint returns socket timeout #507
Comments
Hi @matejzero, thanks for reporting this. I'm not sure when I'll be able to debug/investigate this, but at least I was able to reproduce this against their container. You said it works occasionally, so I suspect this is a bug in the nagios-plugins project. |
Sure, no problem. It works for me with -N flag for now, so I'm fine. I don't need string check for now, since status code is enough in my case. |
… the amount of content received Prior to this commit, check_http relied on read() returning 0 or erroring in order to exit the loop. This commit keeps the same behavior, but once headers have been received, it also reads the Content-Length and compares it to the number of bytes received after the start of the body.
The pull request above seems to fix the issue in my environment. Would you be willing to compile and verify that it works for you as well? |
I can confirm this PR fixes the bug.
|
Hello,
I'm trying to monitor Victoria Metrics health endpoint, but check_http is returning
CRITICAL - Socket timeout
.Output of the command:
Every now and then, I do get successful return of OK:
curl returns successful result every time (notice, there is no new line at the end of
OK
string):I'm not sure if this is a bug on check_http or VM side, since curl is returning OK everytime. If I run check_http with -N flag, then it passes the check.
The text was updated successfully, but these errors were encountered: