Problem with check_http for https site
Posted: Tue Oct 20, 2015 6:18 am
Good afternoon,
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:
but it's returning "CRITICAL - Socket timeout after 10 seconds"
I've tried various permutations of "-S" and "-p 443", but nothing gets me "through"!
I ran "nmap MYSERVERID -p- 443" which returned:
which looks positive. I also ran:
which returned:
and
which returned:
Finally, I've Googled the subject and seen someone having to recompile/reinstall the plugins with:
is there any way in which i can tell if I need to do this, or can anyone give me pointers as to how to correctly monitor https sites?
As always, thanks in advance.
Pete
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