HTTPS Check Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
ciscosucks123
Posts: 17
Joined: Fri Oct 18, 2019 10:52 am

HTTPS Check Issue

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: HTTPS Check Issue

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
ciscosucks123
Posts: 17
Joined: Fri Oct 18, 2019 10:52 am

Re: HTTPS Check Issue

Post by ciscosucks123 »

Ok wasn't sure if that was the case, thanks for confirming.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: HTTPS Check Issue

Post by scottwilkerson »

ciscosucks123 wrote:Ok wasn't sure if that was the case, thanks for confirming.
No problem

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked