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.
Webinject.sh reports only first case errormessage
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Webinject.sh reports only first case errormessage
@sac1472, Please navigate to:
And open the corresponding_Web_Transaction_config.xml file.
After please change the following line:
Let us know if that helped.
Code: Select all
cd /usr/local/nagiosxi/etc/components/webinject
After please change the following line:
Code: Select all
<reporttype>nagios</reporttype>
to
<reporttype>standard</reporttype>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Webinject.sh reports only first case errormessage
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
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
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Webinject.sh reports only first case errormessage
@sac1472
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.
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.if more than one test step fails, only the first test step that failed is reported to Nagios.
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.
Can you upload a screenshot?in logs i can see defined "errormessage" is getting logged for all failed steps
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.