hi Ben,
my website redirect to servlet so i think we have to trace the redirect-url. But dont know why -f follow still work
Pls help me the above question about login -a "username:password".
Thanks Ben.
[root@dc-nagiosxi-uat01 libexec]# ./check_http -I 192.168.xxx.xx -p 443 -H 192.168.xxx.xx -u /xyz -S -w 2 -c 3 -f follow
HTTP OK: HTTP/1.1 200 OK - 439 bytes in 0.082 second response time |time=0.081541s;2.000000;3.000000;0.000000 size=439B;;;0
[root@dc-nagiosxi-uat01 libexec]# ./check_http -I 192.168.xxx.xx -p 443 -H 192.168.xxx.xx -u /xyz -S -w 2 -c 3 -f warning
HTTP WARNING: HTTP/1.1 302 Found - 216 bytes in 0.020 second response time |time=0.019866s;2.000000;3.000000;0.000000 size=216B;;;0
[root@dc-nagiosxi-uat01 libexec]# ./check_http -I 192.168.xxx.xx -p 443 -H 192.168.xxx.xx -u /xyz -S -w 2 -c 3 -f critical
HTTP CRITICAL: HTTP/1.1 302 Found - 216 bytes in 0.061 second response time |time=0.060633s;2.000000;3.000000;0.000000 size=216B;;;0
================================
[root@dc-nagiosxi-uat01 libexec]# ./check_http -I 192.168.xxx.xx -p 443 -H 123.abc.com -u /xyz/servlet/BrowserLoginServlet -S -w 2 -c 3 -f warning
HTTP OK: HTTP/1.1 200 OK - 1246 bytes in 0.023 second response time |time=0.022866s;2.000000;3.000000;0.000000 size=1246B;;;0
[root@dc-nagiosxi-uat01 libexec]# ./check_http -I 192.168.xxx.xx -p 443 -H 123.abc.com -u /xyz/servlet/BrowserLoginServlet -S -w 2 -c 3 -f critical
HTTP OK: HTTP/1.1 200 OK - 1246 bytes in 0.063 second response time |time=0.062866s;2.000000;3.000000;0.000000 size=1246B;;;0