Page 1 of 2

HTTPS

Posted: Mon Jun 27, 2016 4:34 am
by orani
How can i check https?

Re: HTTPS

Posted: Mon Jun 27, 2016 5:13 am
by rhassing
You could use the standard check_http with the following option:

Code: Select all

 -S, --ssl=VERSION
    Connect via SSL. Port defaults to 443. VERSION is optional, and prevents
    auto-negotiation (1 = TLSv1, 2 = SSLv2, 3 = SSLv3).

Re: HTTPS

Posted: Mon Jun 27, 2016 5:23 am
by orani
This must be the check_command definition at .cfg file

Code: Select all

check_command   check_http!S

Re: HTTPS

Posted: Mon Jun 27, 2016 5:26 am
by orani
When i run from command line:

Code: Select all

./check_http -H 195.130.109.104 -S -p 443
i am getting

Code: Select all

check_http: Invalid option - SSL is not available

Re: HTTPS

Posted: Mon Jun 27, 2016 11:22 am
by hsmith
What version of the plugin are you using?

Re: HTTPS

Posted: Mon Jun 27, 2016 11:46 am
by orani
The latest i think. It installed with nagios plugins.

nagios-plugins-2.1.1.tar.gz was the file i downloaded

Re: HTTPS

Posted: Mon Jun 27, 2016 1:05 pm
by hsmith
And what if you try this?

Code: Select all

./check_http -H www.google.com -S -p 443
[/s]

You need to recompile your plugins with SSL support. Use these steps, or similar.

Code: Select all

 cd nagios-plugins-2.1.1
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make
make install

Re: HTTPS

Posted: Mon Jun 27, 2016 1:16 pm
by orani
done but nothing different happened....

Re: HTTPS

Posted: Mon Jun 27, 2016 1:32 pm
by orani
i try installing openssl-devel

Code: Select all

yum install openssl-devel
and then re-install the nagios plugins

Code: Select all

./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make
make install
and now i got an error when trying to check google

Code: Select all

./check_http -H www.google.com -S -p 443
saying

Code: Select all

CRITICAL - Socket timeout after 10 seconds

Re: HTTPS

Posted: Mon Jun 27, 2016 1:35 pm
by orani
worked for my server still the same for google


Mark it as resolved