monitoring sites with SSL terminated on the LB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

monitoring sites with SSL terminated on the LB

Post by decp »

Hi,

I have a site that's currently SSL off-loaded to an F5 load balancer.

This simple HTTP only check from CLI works fine:
# check_http -s "string_to_check" -H http://www.foo.com -I 10.0.0.100 -u "/foo/content"

But this HTTPs gives "CRITICAL - Socket timeout after 10 seconds" error:
# check_http -s "string_to_check" -H http://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443

But if I terminate the SSL all the way to the web server, the above works.
Is there a special way to monitor SSL sites terminated on the load balancer?


Thanks for any info.
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

Re: monitoring sites with SSL terminated on the LB

Post by decp »

btw, i'm using nagios xi.
but this works on nagios core 2.9
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitoring sites with SSL terminated on the LB

Post by abrist »

decp wrote:check_http -s "string_to_check" -H http://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443
Are you sure the web address is still http instead of https?

Code: Select all

check_http -s "string_to_check" -H https://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

Re: monitoring sites with SSL terminated on the LB

Post by decp »

i tried that:
check_http -s "string_to_check" -H https://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443

and
check_http -s "string_to_check" -H http://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443
check_http -s "string_to_check" www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443

still getting that same error.
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

Re: monitoring sites with SSL terminated on the LB

Post by decp »

abrist wrote: Are you sure the web address is still http instead of https?

Code: Select all

check_http -s "string_to_check" -H https://www.foo.com -I 10.0.0.100 -u "/foo/content" -S -p 443
the site responds to both http and https if that's what you're asking?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: monitoring sites with SSL terminated on the LB

Post by scottwilkerson »

can you run it like this

Code: Select all

check_http -s "string_to_check" -H www.foo.com -u "/foo/content" -S -p 443
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

Re: monitoring sites with SSL terminated on the LB

Post by decp »

scottwilkerson wrote:can you run it like this

Code: Select all

check_http -s "string_to_check" -H www.foo.com -u "/foo/content" -S -p 443

same error - CRITICAL - Socket timeout after 10 seconds
but it works fine on nagios core 2.9, weird.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitoring sites with SSL terminated on the LB

Post by abrist »

Is this website protected by any type of auth (even basic)?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
decp
Posts: 7
Joined: Tue Jul 30, 2013 2:52 pm

Re: monitoring sites with SSL terminated on the LB

Post by decp »

abrist wrote:Is this website protected by any type of auth (even basic)?
No.
Is there a log somewhere that I can check? or some debug level I can turn on?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: monitoring sites with SSL terminated on the LB

Post by abrist »

You can check the ssl_access_log and ssl_error_log.

Code: Select all

tail -25 /var/log/httpd/ssl_access_log
tail -25 /var/log/httpd/ssl_error_log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked