Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
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
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
}
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.
What happens if you change it to check_command check_http!-H inter-w01-dev.ent.abc.com -u "/applications/SiteX" -S? The -u flag is for anything after your FQDN.
Also - can you post your host definition as well?
For reference, the -I in your check_http command may cause issues too -
Thanks for that update and glad to hear it worked out. I'll lock this thread now but feel free to open another if you need assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!