Page 1 of 1

Webinject.sh reports only first case errormessage

Posted: Fri Dec 08, 2017 9:28 am
by sac1472
Hello,
Web Inject works like :-----
if more than one test step fails, only the first test step that failed is reported to Nagios.

But, I want to get "$errormessage" to nagios for all failed test steps in web Transaction Check. So, the generated alert would contain "errormessage" for all failed steps.

Re: Webinject.sh reports only first case errormessage

Posted: Fri Dec 08, 2017 4:10 pm
by npolovenko
@sac1472, Please navigate to:

Code: Select all

cd /usr/local/nagiosxi/etc/components/webinject
And open the corresponding_Web_Transaction_config.xml file.
After please change the following line:

Code: Select all

<reporttype>nagios</reporttype>
to
<reporttype>standard</reporttype>
Let us know if that helped.

Re: Webinject.sh reports only first case errormessage

Posted: Wed Dec 13, 2017 4:56 am
by sac1472
I had already added that "standard" as report type. and it's working.

But my requirement is like:- I want defined "$errormessage" should be printed in nagios alert for all failed steps in one transaction check.

However, in logs i can see defined "errormessage" is getting logged for all failed steps.

Thanks

Re: Webinject.sh reports only first case errormessage

Posted: Wed Dec 13, 2017 3:03 pm
by npolovenko
@sac1472
if more than one test step fails, only the first test step that failed is reported to Nagios.
Just to be clear, you were able to figure this part out, right? Becuase when I ran this plugin I could only get info on how many checks failed, versus the description on which checks actually failed. We are not the creators of this plugin and if you want to get that functionality you may need to contact the developer.
So you want an alert(email?) describing which particular cases failed with the corresponding error messages? If yes, then based on my test this plugin doesn't have this functionality.
in logs i can see defined "errormessage" is getting logged for all failed steps
Can you upload a screenshot?