Webinject Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

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

Re: Webinject Error

Post by rkennedy »

The webinject seems to be working then as it's returning with ID 6. Are you expecting a different result?
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

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

Re: Webinject Error

Post 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
Former Nagios Employee
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Webinject Error

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked