Error HTTP/1.1 400 Bad Request

Hi,

I try to configure a Check HTTP service to monitor certain ip over https.

The Graph is ok but the Output of check plugin show this message:

“HTTP WARNING: HTTP/1.1 400 Bad Request - 160 bytes in 0.070 second response time”

This is my configuration:

Hosts name / IP address: 172.17.4.2
TCP Port: 443
Mode of the Check: Check the URL,
URI to fetch (default is /): /demo/index.html
Use SSL/HTTPS for the connection: Use SSL with auto negotiation
Expected response time: 100.00 ms, 200.00 ms
Advanced: Disable SSL/TLS hostname extension support (SNI):

Service check command:

check_mk_active-http!’-u’ ‘/demo/index.html’ ‘–ssl’ ‘-w’ ‘0.100000’ ‘-c’ ‘0.200000’ ‘-p’ ‘443’ ‘172.17.4.2’

What’s the exactly problem? Why the message is an error 400?
thanks.

Hi,

The HyperText Transfer Protocol (HTTP) 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

From what I can see your settings should be OK. Can you access the the URL from the check_mk server using other means? E.g. a browser or something like wget?

I resolve this by update the value "Virtual host: " I put the Ip on this cell.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.