Iam I dong this correctly for check_http
Posted: Wed Feb 09, 2022 8:02 am
When I run this
./check_http -H lvl2xxxxxedu -s "Email" -f ok -I 1xxxxx4 -u '/profile' -S --sni -p 443 -a username:pass -v
I get this as the output
https://xxxxxxxx4:443/profile is 508 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Wed, 09 Feb 2022 12:53:12 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000;includeSubDomains
Via: 1.1 xxxxxxxx (Access Gateway-agxxxxx-117x7)
Location: https://lvl2.med.umich.edu/profile/
Content-Length: 164
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved.</p>
</body></html>
HTTP CRITICAL: HTTP/1.1 302 Found - string 'Email' not found on 'https://lvxxxxxxxdu:443/profile' - 508 bytes in 0.010 second response time |time=0.009587s;;;0.000000 size=508B;;;0
When I run this
./check_http -L -H lvl2.med.umich.edu -s "Email" -f ok -I X.X.X.X -u '/profile' -S --sni -p 443 -a username:pass -v
I get this
<A HREF="https://lvlxxxxxxx:443/profile" target="_blank">SSL initialized
GET /profile HTTP/1.1
User-Agent: check_http/v2.3.3 (nagios-plugins 2.3.3)
Connection: close
Host: lvl2xxxxxxxxdu
Accept: */*
Authorization: Basic xxxxxxxxxxxxxx
https://xxxxxxxx4:443/profile is 508 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Wed, 09 Feb 2022 12:58:08 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000;includeSubDomains
Via: 1.1 lvl2xxxxedu (Access Gateway-ag-x-x)
Location: https://lvxxxxxdu/profile/
Content-Length: 164
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved.</p>
</body></html>
HTTP CRITICAL: HTTP/1.1 302 Found - string 'Email' not found on 'https://lvl2xxxxxxxu:443/profile' - 508 bytes in 0.010 second response time </A>|time=0.009998s;;;0.000000 size=508B;;;0
I do know when I login to the page the header changes to this
https://lvlxxxxxxxdu/profile/#!/ after I login
./check_http -H lvl2xxxxxedu -s "Email" -f ok -I 1xxxxx4 -u '/profile' -S --sni -p 443 -a username:pass -v
I get this as the output
https://xxxxxxxx4:443/profile is 508 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Wed, 09 Feb 2022 12:53:12 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000;includeSubDomains
Via: 1.1 xxxxxxxx (Access Gateway-agxxxxx-117x7)
Location: https://lvl2.med.umich.edu/profile/
Content-Length: 164
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved.</p>
</body></html>
HTTP CRITICAL: HTTP/1.1 302 Found - string 'Email' not found on 'https://lvxxxxxxxdu:443/profile' - 508 bytes in 0.010 second response time |time=0.009587s;;;0.000000 size=508B;;;0
When I run this
./check_http -L -H lvl2.med.umich.edu -s "Email" -f ok -I X.X.X.X -u '/profile' -S --sni -p 443 -a username:pass -v
I get this
<A HREF="https://lvlxxxxxxx:443/profile" target="_blank">SSL initialized
GET /profile HTTP/1.1
User-Agent: check_http/v2.3.3 (nagios-plugins 2.3.3)
Connection: close
Host: lvl2xxxxxxxxdu
Accept: */*
Authorization: Basic xxxxxxxxxxxxxx
https://xxxxxxxx4:443/profile is 508 characters
STATUS: HTTP/1.1 302 Found
**** HEADER ****
Date: Wed, 09 Feb 2022 12:58:08 GMT
Server: Apache
Strict-Transport-Security: max-age=31536000;includeSubDomains
Via: 1.1 lvl2xxxxedu (Access Gateway-ag-x-x)
Location: https://lvxxxxxdu/profile/
Content-Length: 164
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved.</p>
</body></html>
HTTP CRITICAL: HTTP/1.1 302 Found - string 'Email' not found on 'https://lvl2xxxxxxxu:443/profile' - 508 bytes in 0.010 second response time </A>|time=0.009998s;;;0.000000 size=508B;;;0
I do know when I login to the page the header changes to this
https://lvlxxxxxxxdu/profile/#!/ after I login