WebInject check produces (Return code of 255 is out of bound
Posted: Fri Apr 22, 2016 2:24 pm
Hello XI support
Unsure how WebInject check produces (Return code of 255 is out of bound) when testing against https://login.microsoft.com ?
- what could be the reason and how to troubleshoot?
- almost like it is newer gets to execute the script:
it keeps creating tmp files under /usr/local/nagiosxi/etc/components/webinject (already tried one more portal with same results)
<testcases repeat="1">
<case
id="1"
description1="Connecting to Office 365 Teamsites"
method="get"
url="https://login.microsoftonline.com"
parseresponse='mykey="|"'
verifypositive="Work or school, or personal Microsoft account"
errormessage="Unable to connect to the login page of Office 365 Teamsites"
/>
<case
id="2"
description1="Authentication on Office 365 Teamsites"
method="post"
url="https://login.microsoftonline.com/login.srf"
postbody="os_username=[email protected]&os_password=PASSWORD&mykey={PARSEDRESULT}"
verifynegative="Sorry, your username and/or password are incorrect. Please try again"
errormessage="Unable to authenticate user Office 365 Teamsites"^M
/>
<case
id="3"
description1="Navigate through Office 365 Teamsites while authenticated"
method="get"
url="https://portal.office.com/default.aspx?"
verifypositive="Office 365 admin center"
errormessage="Unable to navigate through Office 365 Teamsites even though correctly authenticated"^
/>
</testcases>
Unsure how WebInject check produces (Return code of 255 is out of bound) when testing against https://login.microsoft.com ?
- what could be the reason and how to troubleshoot?
- almost like it is newer gets to execute the script:
it keeps creating tmp files under /usr/local/nagiosxi/etc/components/webinject (already tried one more portal with same results)
<testcases repeat="1">
<case
id="1"
description1="Connecting to Office 365 Teamsites"
method="get"
url="https://login.microsoftonline.com"
parseresponse='mykey="|"'
verifypositive="Work or school, or personal Microsoft account"
errormessage="Unable to connect to the login page of Office 365 Teamsites"
/>
<case
id="2"
description1="Authentication on Office 365 Teamsites"
method="post"
url="https://login.microsoftonline.com/login.srf"
postbody="os_username=[email protected]&os_password=PASSWORD&mykey={PARSEDRESULT}"
verifynegative="Sorry, your username and/or password are incorrect. Please try again"
errormessage="Unable to authenticate user Office 365 Teamsites"^M
/>
<case
id="3"
description1="Navigate through Office 365 Teamsites while authenticated"
method="get"
url="https://portal.office.com/default.aspx?"
verifypositive="Office 365 admin center"
errormessage="Unable to navigate through Office 365 Teamsites even though correctly authenticated"^
/>
</testcases>