check_http -S command since upgrade 2012R2.8

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Fenech
Posts: 16
Joined: Thu Jun 20, 2013 1:31 pm

Re: check_http -S command since upgrade 2012R2.8

Post by Fenech »

Here is the verbose entry as well as another SSL check. We are working to see if it will function if we change the port on the non working command is running on from 9602 to 443. I'll let you know how it goes.
HTTP OK: HTTP/1.1 200 OK - 3843 bytes in 0.009 second response time |time=0.009187s;5.000000;10.000000;0.000000 size=3843B;;;0
[root@nagios nagios-plugins-master]# ./plugins/check_http -I 10.0.0.1 -H url.com -w 5 -c 10 -S -p 9602 -vvv
CRITICAL - Cannot make SSL connection.
[root@nagios nagios-plugins-master]# ./plugins/check_http -I 155.97.137.62 -H http://www.kronos.utah.edu -w 5 -c 10 -S
HTTP OK: HTTP/1.1 200 OK - 3844 bytes in 0.009 second response time |time=0.009174s;5.000000;10.000000;0.000000 size=3844B;;;0
[root@nagios nagios-plugins-master]#
Fenech
Posts: 16
Joined: Thu Jun 20, 2013 1:31 pm

Re: check_http -S command since upgrade 2012R2.8

Post by Fenech »

I updated the working environment's openSSL to match the 2012R2.9 enviroment's openSSL. That caused our checks to break. 2012R2.7 running openssl.x86_64 0:1.0.1e-16.el6_5.4 causes the check to fail. They work with openssl.x86_64 1.0.0-27.el6_4.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http -S command since upgrade 2012R2.8

Post by abrist »

Is it only failing with non-standard ports, or are some 443 checks failing as well?
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.
Fenech
Posts: 16
Joined: Thu Jun 20, 2013 1:31 pm

Re: check_http -S command since upgrade 2012R2.8

Post by Fenech »

Non standard only. The 443 ports are continuing to function correctly.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http -S command since upgrade 2012R2.8

Post by abrist »

Great. Thanks for the report. I am on it.
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http -S command since upgrade 2012R2.8

Post by abrist »

Well, now I am confused. I configured a box running https on 11443 with the exact version of openssl you are running:

Code: Select all

$ yum list installed | grep openssl
openssl.x86_64                   1.0.1e-16.el6_5.4          @updates
openssl-devel.x86_64             1.0.1e-16.el6_5.4          @updates

$ nmap localhost -p 443,11443
PORT      STATE  SERVICE
443/tcp   closed https
11443/tcp open   unknown

$ ./plugins/check_http -H localhost -I 192.168.4.21 -S -p 11443 -w 50 -c 100
HTTP OK: HTTP/1.1 200 OK - 695 bytes in 0.019 second response time |time=0.019278s;50.000000;100.000000;0.000000 size=695B;;;0

$ ./plugins/check_http -H localhost -I 192.168.4.21 -S -p 443 -w 50 -c 100
Connection refused
HTTP CRITICAL - Unable to open TCP socket
So, am I missing something here? How should I go about reproducing this?
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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http -S command since upgrade 2012R2.8

Post by abrist »

What openssl version is the remote box running?
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.
Fenech
Posts: 16
Joined: Thu Jun 20, 2013 1:31 pm

Re: check_http -S command since upgrade 2012R2.8

Post by Fenech »

It is a Solaris 10 box. It is not running OpenSSL.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_http -S command since upgrade 2012R2.8

Post by sreinhardt »

The system running the web server is solaris, or the server running the plugin is?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http -S command since upgrade 2012R2.8

Post by abrist »

Is it only solaris https checks that you are having issues with? I tested against centos yesterday, and freebsd, gentoo, and debian today. All work fine checking against the ssl port of 11443.
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