check_http for HTTPS

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

check_http for HTTPS

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_http for HTTPS

Post 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.
Former Nagios employee
https://www.mcapra.com/
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: check_http for HTTPS

Post 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:
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: check_http for HTTPS

Post by mcapra »

Glad to be of assistance! Is it ok if I lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: check_http for HTTPS

Post by paulol »

OK.
Locked