I'm attempting to do something I though would be straightforward but I'm not getting it.
I have a company website in AWS that has URL https://mycompany.com/ok which just has the string OK on it.
I'm attempting to use the check_https as follows:
check_http -H mycompany.com --url "/ok" -s "OK" -S but it returns:
HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string 'OK' not found on https://mycompany.com:443/ok.
I've tried about every combination I can think of to try and get that string but to no avail. When I follow that link I get the "OK" page. Any pointers here?
Searching for string on webpage
-
gwesterman
- Posts: 268
- Joined: Wed Aug 23, 2023 11:29 am
Re: Searching for string on webpage
Hi @jk111,
Try adding -f follow.
Let us know if that works or not.
Thank you!
Try adding -f follow.
Let us know if that works or not.
Thank you!
Re: Searching for string on webpage
I tried it with the -f follow switch and got the error:
CRITICAL - Cannot make SSL connection.
139637063849792:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:ssl/record/rec_layer_s3.c
SSL alert number 40
CRITICAL - Cannot make SSL connection.
139637063849792:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:ssl/record/rec_layer_s3.c
Re: Searching for string on webpage
Can anyone help with this?
Re: Searching for string on webpage
Hello, I keep running into the SSL error over multiple websites. I came across a KB where it said to set update-cryto-policies to LEGACY but that didn't work. I'm really struggling to setup URL monitoring using the check_http. No matter what website I use, I keep running into this.
-
nagios-dnelson
Re: Searching for string on webpage
Greetings @jk111!
Are you still experiencing this issue? I just tested the following command on the latest version of XI and it returned without error:
Likely, this isn't the same website you were trying against, but I am using a couple of flags that you might not have been. I would suggest adding the -p 443 and the --sni flags first to see if that gets you further in your quest.
If that doesn't work, would you be willing to let me know the name of the site you are trying to test?
-Doug
Are you still experiencing this issue? I just tested the following command on the latest version of XI and it returned without error:
Code: Select all
check_http -H peacefulrock.com -s "Peaceful Rock Productions" -f ok -I 67.205.3.197 -u "/" -S --sni -p 443If that doesn't work, would you be willing to let me know the name of the site you are trying to test?
-Doug