Page 1 of 2
check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 11:50 am
by rlevick
So I have a number of local sites that use SSL. I edited the default check_http command and ran it manually. On my old Nagios server it works, not on the new.
/usr/local/nagios/libexec/check_http -H <server> -S -w 30 -c 120
HTTP OK - HTTP/1.1 302 Found - 0.059 second response time |time=0.058508s;30.000000;120.000000;0.000000 size=209B;;;0
# /usr/local/nagios/libexec/check_http -H <server> -S -w 30 -c 120
check_http: Invalid option - SSL is not available
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:01 pm
by abrist
First, make sure the server supports ssl:
And lets check where your ssl bin is:
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:01 pm
by tmcdonald
Assuming a RHEL or CentOS installation:
Code: Select all
yum -y install openssl openssl-devel
cd /tmp
wget http://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz
tar xzf nagios-plugins-1.5.tar.gz
cd nagios-plugins-1.5
./configure --with-openssl
make all
make install
This assumes you have all the standard gcc, make, etc. available.
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:05 pm
by rlevick
]# nmap <server> -p 443
Starting Nmap 5.51 (
http://nmap.org ) at 2014-02-05 11:02 CST
Nmap scan report for <server>1 (172.xx.xx.xx)
Host is up (0.00061s latency).
rDNS record for 172.xx.xx.xx: <server>
PORT STATE SERVICE
443/tcp open https
Nmap done: 1 IP address (1 host up) scanned in 0.15 seconds
[root@vfcmon-01 servers]# which openssl
/usr/bin/openssl
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:09 pm
by tmcdonald
I might also add that you need openssl-devel as well, if you don't already. I updated my post to reflect this.
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:10 pm
by rlevick
So I still need to install the plugins with openssl?
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 12:14 pm
by tmcdonald
rlevick wrote:So I still need to install the plugins with openssl?
Recompile, but basically yes.
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 2:07 pm
by rlevick
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 2:13 pm
by slansing
You need to wget the tarball:
Code: Select all
wget http://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz
Re: check_http: Invalid option - SSL is not available
Posted: Wed Feb 05, 2014 2:19 pm
by rlevick
Sweet! It's working. Thank you!