HTTP / HTTPS syntax Monitor check from CLI
Problem this snippet solves: When creating monitor, we usually check web site availability with curl.
These commands allow to check if HTTP Monitor send string is correct How to use this snippet:...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Ajit
Aug 06, 2018Altostratus
Hello Stanislas,
I tried the below command but it just shows me SSL errors. Can you assist?
(echo -ne "GET / HTTP/1.1\\r\\nHost: abc.com\\r\\nConnection: Close\\r\\n"; cat) | openssl s_client -connect 1.1.1.1:443 -quiet
47753692343424:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1293:SSL alert number 40 47753692343424:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:184:
It shows me the above errors after being connected.
Note: I do not have a DNS entry for abc.com in place
Regards,
Ajit