Page 1 of 1

check_http for HTTPS

Posted: Thu Jun 16, 2016 11:28 am
by paulol
Hi guys, i'm triyng to check the page: https://www.lbv.org/doar but the output show me CRITICAL error because didnt find the string 'isenta de impostos', but this string exist on that page and also i tried to change the string to another one, but the output is the same. How that is possible?

[root@DOUAI libexec]# ./check_http -H http://www.lbv.org -s "isenta de impostos" -f ok -I 52.5.23.157 -u "/doar" -S -p 443

HTTP CRITICAL: HTTP/1.1 301 Moved Permanently - string 'isenta de impostos' not found on 'https://www.lbv.org:443/doar' - 456 bytes in 0.607 second response time |time=0.606886s;;;0.000000 size=456B;;;0

Re: check_http for HTTPS

Posted: Thu Jun 16, 2016 11:48 am
by mcapra
Could you try revising your check command like so:

Code: Select all

./check_http -H www.lbv.org -s "isenta de impostos" -f ok -I 52.5.23.157 -u "/doar/index.php" -S -p 443
I suspect the fact that the /doar path is configured for a 301 redirection to /doar/index.php is confusing the check_http plugin.

Re: check_http for HTTPS

Posted: Thu Jun 16, 2016 12:06 pm
by paulol
mcapra, you are right.

[root@DOUAI libexec]# ./check_http -H www.lbv.org -s "Copyright 2015. LBV – Instituição Isenta de Impostos." -f ok -I 52.5.23.157 -u "/doar/index.php" -S -p 443
HTTP OK: HTTP/1.1 200 OK - 17960 bytes in 0.777 second response time |time=0.777011s;;;0.000000 size=17960B;;;0

Thyou for quick help. :mrgreen:

Re: check_http for HTTPS

Posted: Thu Jun 16, 2016 12:20 pm
by mcapra
Glad to be of assistance! Is it ok if I lock this thread and mark the issue as resolved?

Re: check_http for HTTPS

Posted: Thu Jun 16, 2016 12:42 pm
by paulol
OK.