check_http failing in some cases
Posted: Sun Nov 24, 2013 10:09 pm
Hello all,
I am running into an issue, where a simple http check hitting a java process http port fails
Here is the error:
[root@stageutil03 libexec]# ./check_http -H 10.198.6.16 -w 2 -c 4 -u '/datatracker?healthcheck=1' -p 8080
CRITICAL - Socket timeout after 10 seconds
But when I hit this process going through nginx that fronts this, I get 200 ok
[root@stageutil03 libexec]# ./check_http -H 10.198.6.16 -w 2 -c 4 -u '/datatracker?healthcheck=1' -p 8085
HTTP OK: HTTP/1.1 200 OK - 121 bytes in 0.004 second response time |time=0.004273s;2.000000;4.000000;0.000000 size=121B;;;0
And this is the curl command returning the response on the failing port in nagios
[root@stageutil03 libexec]# curl -I http://10.198.6.16:8080//datatracker?healthcheck=1
HTTP/1.1 200 OK
Content-Length: 6
What could be the issue? I have looked at the nrpe client logs, and it's not telling me much
I am running into an issue, where a simple http check hitting a java process http port fails
Here is the error:
[root@stageutil03 libexec]# ./check_http -H 10.198.6.16 -w 2 -c 4 -u '/datatracker?healthcheck=1' -p 8080
CRITICAL - Socket timeout after 10 seconds
But when I hit this process going through nginx that fronts this, I get 200 ok
[root@stageutil03 libexec]# ./check_http -H 10.198.6.16 -w 2 -c 4 -u '/datatracker?healthcheck=1' -p 8085
HTTP OK: HTTP/1.1 200 OK - 121 bytes in 0.004 second response time |time=0.004273s;2.000000;4.000000;0.000000 size=121B;;;0
And this is the curl command returning the response on the failing port in nagios
[root@stageutil03 libexec]# curl -I http://10.198.6.16:8080//datatracker?healthcheck=1
HTTP/1.1 200 OK
Content-Length: 6
What could be the issue? I have looked at the nrpe client logs, and it's not telling me much