webinject ssl issues?
Posted: Wed Jan 31, 2018 10:08 am
HI all,
I'm trying to setup some simple web address monitoring but it does not seem to like SSL.
I'm using the standalone webinject program for testing before adding to nagiosXI.
This is an initial test if ssl works but it seems it does not.
This is the config file:
<testcasefile>testcases.xml</testcasefile>
<globalhttplog>onfail</globalhttplog>
<proxy>internal proxy address</proxy>
This is the results page:
Verify : "itemscope"
Passed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.417 sec
-------------------------------------------------------
Test: testcases.xml - 2
google https get
Verify : "itemscope"
Failed Positive Verification
Failed HTTP Response Code Verification (HTTP/1.1 400 Bad Request)
TEST CASE FAILED
Response Time = 0.086 sec
This is the httplog:
GET https://www.google.de
User-Agent: WebInject
Cookie: 1P_JAR=2018-01-31-15; NID=122=XMYTb_U-s8bSiPXO6ozVfuFI2OIy4v8sJzfXJAXpaxRUiw-wZVPWXcOeSdBYq1fkeMuW8bpChg0R8CCTGn_p8Pzp1meM-rPdmEyUvie8v7cD9a5zHYni6yIo0JDT0IUS
Cookie2: $Version="1"
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Connection: close
Pragma: no-cache
Content-Length: 691
Content-Type: text/html; charset=utf-8
Client-Date: Wed, 31 Jan 2018 15:05:36 GMT
Client-Peer: 16.46.16.11:8080
Client-Response-Num: 1
Proxy-Connection: close
Title: Request Error
<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (invalid_request)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request could not be processed. Request could not be handled
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
This could be caused by a misconfiguration, or possibly a malformed request.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
this is the testpages:
<testcases repeat="1">
<case
id="1"
description1="google http get"
method="get"
url="http://www.google.de"
verifypositive="itemscope"
/>
<case
id="2"
description1="google https get"
method="get"
url="https://www.google.de"
verifypositive="itemscope"
/>
</testcases>
I'm trying to setup some simple web address monitoring but it does not seem to like SSL.
I'm using the standalone webinject program for testing before adding to nagiosXI.
This is an initial test if ssl works but it seems it does not.
This is the config file:
<testcasefile>testcases.xml</testcasefile>
<globalhttplog>onfail</globalhttplog>
<proxy>internal proxy address</proxy>
This is the results page:
Verify : "itemscope"
Passed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.417 sec
-------------------------------------------------------
Test: testcases.xml - 2
google https get
Verify : "itemscope"
Failed Positive Verification
Failed HTTP Response Code Verification (HTTP/1.1 400 Bad Request)
TEST CASE FAILED
Response Time = 0.086 sec
This is the httplog:
GET https://www.google.de
User-Agent: WebInject
Cookie: 1P_JAR=2018-01-31-15; NID=122=XMYTb_U-s8bSiPXO6ozVfuFI2OIy4v8sJzfXJAXpaxRUiw-wZVPWXcOeSdBYq1fkeMuW8bpChg0R8CCTGn_p8Pzp1meM-rPdmEyUvie8v7cD9a5zHYni6yIo0JDT0IUS
Cookie2: $Version="1"
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Connection: close
Pragma: no-cache
Content-Length: 691
Content-Type: text/html; charset=utf-8
Client-Date: Wed, 31 Jan 2018 15:05:36 GMT
Client-Peer: 16.46.16.11:8080
Client-Response-Num: 1
Proxy-Connection: close
Title: Request Error
<HTML><HEAD>
<TITLE>Request Error</TITLE>
</HEAD>
<BODY>
<FONT face="Helvetica">
<big><strong></strong></big><BR>
</FONT>
<blockquote>
<TABLE border=0 cellPadding=1 width="80%">
<TR><TD>
<FONT face="Helvetica">
<big>Request Error (invalid_request)</big>
<BR>
<BR>
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
Your request could not be processed. Request could not be handled
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica">
This could be caused by a misconfiguration, or possibly a malformed request.
</FONT>
</TD></TR>
<TR><TD>
<FONT face="Helvetica" SIZE=2>
<BR>
For assistance, contact your network support team.
</FONT>
</TD></TR>
</TABLE>
</blockquote>
</FONT>
</BODY></HTML>
this is the testpages:
<testcases repeat="1">
<case
id="1"
description1="google http get"
method="get"
url="http://www.google.de"
verifypositive="itemscope"
/>
<case
id="2"
description1="google https get"
method="get"
url="https://www.google.de"
verifypositive="itemscope"
/>
</testcases>