Page 1 of 1

HTTPS Check Issue

Posted: Tue Nov 05, 2019 2:51 pm
by ciscosucks123
Hello i am trying to configure a check for HTTPS with the "check_xi_service_http" command. However when running the check the response appears to be returning "HTTP OK: HTTP/1.1 301 Moved Permanently - 503 bytes in 0.161 second response time", any ideas why it is not reporting on HTTPS?

Screenshot of my service configuration:
https://imgur.com/CuKcKuW

Re: HTTPS Check Issue

Posted: Tue Nov 05, 2019 3:06 pm
by scottwilkerson
HTTP OK: HTTP/1.1 is just the protocol... If you add --ssl like you did, it is forcing a SSL connection

It also seems there is a redirection going on, and if you want it to follow that redirect you should add

Code: Select all

 -f follow

Re: HTTPS Check Issue

Posted: Wed Nov 06, 2019 9:22 am
by ciscosucks123
Ok wasn't sure if that was the case, thanks for confirming.

Re: HTTPS Check Issue

Posted: Wed Nov 06, 2019 9:24 am
by scottwilkerson
ciscosucks123 wrote:Ok wasn't sure if that was the case, thanks for confirming.
No problem

Locking thread