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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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>
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

What are the permissions on the files you're testing against? Can you run ls -la against them and post the result?
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post by rkennedy »

Got it, closing this one out since it sounds like it fixed itself.
Former Nagios Employee
Locked