Page 4 of 4

Re: Webinject Error

Posted: Wed Jan 20, 2016 6:49 am
by sutenag
Have change all https to http and it dont get any better with this,

Yesterday i change the listen port from 8080 to 8443 and the execute of the script comes down to id 6.

Test: SLSV65_Test_BOI_testdata.xml - 6
Desc: Search for good card 370409524 Stage 2
POST Request: https://ipaddress:8443/boi/card/cardSea ... geNumber=1
Verify Response Code: "200"
Passed HTTP Response Code Verification
Verify: 'SL Access Card'
Failed Positive Verification
TEST CASE FAILED : case #6: Failed Positive Verification, can not find a string matching regex: SL\\ Access\\ Card - Unable to search for 370409524
Response Time = 0.237 sec

Re: Webinject Error

Posted: Wed Jan 20, 2016 6:04 pm
by rkennedy
The webinject seems to be working then as it's returning with ID 6. Are you expecting a different result?

Re: Webinject Error

Posted: Thu Jan 21, 2016 4:17 am
by sutenag
Yes it seems so, do you where i can set this error message as an waning instead of error so its not showing up in nagios as critical?

Re: Webinject Error

Posted: Thu Jan 21, 2016 1:35 pm
by rkennedy
It currently does not have warning / critical alerts, and with this script it will change quite frequently based on the XML running against it. You could always modify the bash script, and modify it to change the exit code / alert echo accordingly. This page shows a bit more about bash scripting with Nagios - http://www.yourownlinux.com/2014/06/how ... cript.html

Re: Webinject Error

Posted: Wed Feb 07, 2018 3:58 pm
by cdienger
Hi sutenag

Were you by chance using web inject through a proxy? We recently discovered and fixed an issue webinject had with making proper https requests through a proxy. You can find a solution for this here:

https://support.nagios.com/forum/viewto ... =6&t=47326