check_http - HTTP WARNING: HTTP/1.1 400 Bad Request
Posted: Tue Mar 01, 2016 9:48 am
I've set up monitoring for a specific HTTPS website, but am getting the following warning on the Nagios web interface:
HTTP WARNING: HTTP/1.1 400 Bad Request - 513 bytes in 0.159 second response time
Here's what the service definition looks like:
I should mention that I've ran curl on the URL (see code below) and it did successfully return the page source, so I'm unsure why I keep receiving the 400 Bad Request warning from within Nagios.
Am I missing something?
HTTP WARNING: HTTP/1.1 400 Bad Request - 513 bytes in 0.159 second response time
Here's what the service definition looks like:
Code: Select all
define service{
use generic-service ; Inherit default value$
host_name hostxyz
service_description HTTPS - Site X
check_command check_http! -H inter-w01-dev.ent.abc.com/applications/SiteX -S
}
Code: Select all
curl https://inter-w01-dev.ent.abc.com/applications/SiteX