check_http: Invalid option - SSL is not available
check_http: Invalid option - SSL is not available
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
/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
First, make sure the server supports ssl:
And lets check where your ssl bin is:
Code: Select all
nmap <server> -p 443Code: Select all
which opensslFormer 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.
"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.
Re: check_http: Invalid option - SSL is not available
Assuming a RHEL or CentOS installation:
This assumes you have all the standard gcc, make, etc. available.
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
Former Nagios employee
Re: check_http: Invalid option - SSL is not available
]# 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
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
I might also add that you need openssl-devel as well, if you don't already. I updated my post to reflect this.
Former Nagios employee
Re: check_http: Invalid option - SSL is not available
So I still need to install the plugins with openssl?
Re: check_http: Invalid option - SSL is not available
Recompile, but basically yes.rlevick wrote:So I still need to install the plugins with openssl?
Former Nagios employee
Re: check_http: Invalid option - SSL is not available
What?
[root@vfcmon-01 tmp]# http://www.nagios-plugins.org/download/ ... 1.5.tar.gz
-bash: http://www.nagios-plugins.org/download/ ... 1.5.tar.gz: No such file or directory
[root@vfcmon-01 tmp]# http://www.nagios-plugins.org/download/ ... 1.5.tar.gz
-bash: http://www.nagios-plugins.org/download/ ... 1.5.tar.gz: No such file or directory
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_http: Invalid option - SSL is not available
You need to wget the tarball:
Code: Select all
wget http://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gzRe: check_http: Invalid option - SSL is not available
Sweet! It's working. Thank you!