URL transactional moniotoring
URL transactional moniotoring
Team,
We are performing URL transactional moniotroing.We have downloaded webinject from CPAN ad it is working fine when checked manually with our script but
when we checked using webtransactional wizard it is not working.This might be due to old version in nagios.
What is the process to upgrade webinject in nagios.Do we need to submit a ticket?
We are performing URL transactional moniotroing.We have downloaded webinject from CPAN ad it is working fine when checked manually with our script but
when we checked using webtransactional wizard it is not working.This might be due to old version in nagios.
What is the process to upgrade webinject in nagios.Do we need to submit a ticket?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: URL transactional moniotoring
Could we see the output that the web interface is giving you once the check is configured, and also what is being output when manually run from the command line?
Re: URL transactional moniotoring
Our test cases require the advanced config options in version 1.86 (current CPAN) for redirects and authentication. Current errors are immediate failures of test case and “out of bounds” errors on the return code from webinject.pl
Re: URL transactional moniotoring
Can you post the full commands and check configurations that you are using?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
Jaysen.ODell
- Posts: 9
- Joined: Tue Jun 19, 2012 11:53 am
Re: URL transactional moniotoring
This was written for webinspect 1.86 (CPAN) to be implemented in XI...
This follows our SSO solution which creates dynamic redirects. We want to simulate a user click trail to ensure that we are monitoring for the real end user trail, not an artificially accurate trail. The error seems to be in the max_redirect directive (added in 1.5) and the auth/cookie enhancements made in 1.6.
cfg file contents:
test case file contents:
This follows our SSO solution which creates dynamic redirects. We want to simulate a user click trail to ensure that we are monitoring for the real end user trail, not an artificially accurate trail. The error seems to be in the max_redirect directive (added in 1.5) and the auth/cookie enhancements made in 1.6.
cfg file contents:
Code: Select all
<testcasefile>nagios-test.xml</testcasefile>
<globalhttplog>yes</globalhttplog>
<max_redirect>5</max_redirect>
Code: Select all
<testcases repeat="1">
<case
id="1"
desctiption1="Nagios login test"
desctiption2="Go to homepage and follow redirect to S3"
url="http://nagios.corp.xerox.com"
verifypositive="Title: S3 Application Login"
/>
<case
id="2"
desctiption1="Nagios login test"
desctiption2="Provide S3 credentials and follow redirec to Nagios"
method="post"
posttype="application/x-www-form-urlencoded"
postbody="USER=removed&PASSWORD=removed|&target=http://nagios.corp.xerox.com/nagiosxi"
url="https://xww.s3.world.xerox.com/dmt2/login/login.fcc"
verifypostive="Title: Nagios XI"
/>
</testcases>
-
Jaysen.ODell
- Posts: 9
- Joined: Tue Jun 19, 2012 11:53 am
Re: URL transactional moniotoring
Forgot to add that putting the test case into a XI webinject config fails. test cases supplied to XI via web transaction wizard.
Moderator note: Both posters are from the same organization, do not split topic.
Moderator note: Both posters are from the same organization, do not split topic.
Re: URL transactional moniotoring
What error does it show in the XI interface? Like if you go to Service Detail on the Home page and find the service, what is in the Status Information field? A screenshot would be nice.
Former Nagios employee
-
Jaysen.ODell
- Posts: 9
- Joined: Tue Jun 19, 2012 11:53 am
Re: URL transactional moniotoring
Sorry for the delay. As you may be aware we have had some issues with os upgrades that are taking precedent. I will need to recreate the script and test. I'll try to get screen shot by end of the week.tmcdonald wrote:What error does it show in the XI interface? Like if you go to Service Detail on the Home page and find the service, what is in the Status Information field? A screenshot would be nice.
Re: URL transactional moniotoring
Sounds good. Post the screenshot whenever you are ready.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Jaysen.ODell
- Posts: 9
- Joined: Tue Jun 19, 2012 11:53 am
Re: URL transactional moniotoring
attached. the core lists the same error.
OS level is failing on a 301 and the verify positive. the failure is simple to explain: You have to follow the 301 (which is dynamic) to get the expected string. But since the nagios webinject is 1.4 it will not follow redirects. Also, since I can't actually edit the parent config (the monitoring wizard hides that), I can't enable the max_redirect variable used for >1.5 versions to allow following the 301.
OS level is failing on a 301 and the verify positive. the failure is simple to explain: You have to follow the 301 (which is dynamic) to get the expected string. But since the nagios webinject is 1.4 it will not follow redirects. Also, since I can't actually edit the parent config (the monitoring wizard hides that), I can't enable the max_redirect variable used for >1.5 versions to allow following the 301.
You do not have the required permissions to view the files attached to this post.
Last edited by Jaysen.ODell on Fri Mar 28, 2014 7:03 am, edited 1 time in total.