Page 1 of 1

WebInject check produces (Return code of 255 is out of bound

Posted: Fri Apr 22, 2016 2:24 pm
by dlukinski
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>

Re: WebInject check produces (Return code of 255 is out of b

Posted: Sat Apr 23, 2016 6:38 pm
by rkennedy
What are the permissions on the files you're testing against? Can you run ls -la against them and post the result?

Re: WebInject check produces (Return code of 255 is out of b

Posted: Mon Apr 25, 2016 7:49 am
by dlukinski
rkennedy wrote:What are the permissions on the files you're testing against? Can you run ls -la against them and post the result?
Files were initially created by WebInject Wizard. so not that.
but I copy & pasted content into the wizard :-\

When creating same check with Wizard's initial one-line address, no such errors


I think we could close this one (no such errors w/o copy&paste into Wizard screen)

Re: WebInject check produces (Return code of 255 is out of b

Posted: Mon Apr 25, 2016 11:03 am
by rkennedy
Got it, closing this one out since it sounds like it fixed itself.