using the -S on http does not work

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.
Locked
paries
Posts: 4
Joined: Thu Feb 09, 2017 12:03 pm

using the -S on http does not work

Post by paries »

Hello, trying to get check_http to work with an https site

I did see one post where it mentioned compiling with somekind of SSL flag, but saw no examples on what to do

thanks for any help

./libexec/check_http -S -H http://www.mydomain.com -a myAPIUser:xxx -p 4050 -v
check_http: Invalid option - SSL is not available
Usage:
check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
[-J <client certificate file>] [-K <private key>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth]
[-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
[-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
[-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
[-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]
[-T <content-type>] [-j method]
paries
Posts: 4
Joined: Thu Feb 09, 2017 12:03 pm

Re: using the -S on http does not work

Post by paries »

i tried this and i appeared to compile but still get the error

./configure --with-openssl=/usr/bin/openssl
make
make install


still get the same error
paries
Posts: 4
Joined: Thu Feb 09, 2017 12:03 pm

Re: using the -S on http does not work

Post by paries »

solved this issue,
had to first

yum install openssl-devel

then recompile and now it is working :D
Locked