HTTPS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

HTTPS

Post by orani »

How can i check https?
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: HTTPS

Post 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).
Rob Hassing
Image
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post by orani »

This must be the check_command definition at .cfg file

Code: Select all

check_command   check_http!S
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HTTPS

Post by hsmith »

What version of the plugin are you using?
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post by orani »

The latest i think. It installed with nagios plugins.

nagios-plugins-2.1.1.tar.gz was the file i downloaded
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HTTPS

Post 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
Former Nagios Employee.
me.
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post by orani »

done but nothing different happened....
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post 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
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: HTTPS

Post by orani »

worked for my server still the same for google


Mark it as resolved
Locked