I am trying to monitor an https site from the Linux prompt as follows, to make sure that it works before I make changes to my windows.cfg:
Code: Select all
/usr/local/nagios/libexec/check_http -H MYSERVERID -u https://my/web/address -p 443
I've tried various permutations of "-S" and "-p 443", but nothing gets me "through"!
I ran "nmap MYSERVERID -p- 443" which returned:
Code: Select all
Starting Nmap 5.51 ( http://nmap.org ) at 2015-10-20 12:15 BST
Nmap scan report for MYSERVERID (99.99.99.99)
Host is up (0.00024s latency).
rDNS record for 99.99.99.99: NYSERVERID
PORT STATE SERVICE
443/tcp open https
Code: Select all
which openssl
Code: Select all
/usr/bin/openssl
Code: Select all
/usr/local/nagios/libexec/check_http -H MYSERVERID -u https://my/web/address -S
Code: Select all
check_http: Invalid option - SSL is not available
Code: Select all
./configure --with-openssl=/usr/bin/openssl
As always, thanks in advance.
Pete