HTTPs check in Nagios error Invalid option – SSL is not available

When you want check https site with “./check_http –ssl google.com” command in Nagios, you may get this error “Invalid option – SSL is not available”

You will able to solve this problem, when you follow this instructions below:

# sudo apt-get install libssl-dev

(navigate to the directory that you have your nagios plugins extracted, Eximple: /home/install-username/nagios-plugins-2.0.3/)

# sudo ./configure –with-openssl=/usr/bin/openssl
# sudo make
# sudo make install
# sudo service nagios restart

Check plugin: go nagios libex folder (maybe there: cd /usr/local/nagios/libexec$)

# sudo ./check_http –ssl google.com
# HTTP OK: HTTP/1.0 302 Found – 524 bytes in 0.132 second response time |time=0.132414s;;;0.000000 size=524B;;;0