URL transactional moniotoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

URL transactional moniotoring

Post by ravish78 »

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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: URL transactional moniotoring

Post by slansing »

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?
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: URL transactional moniotoring

Post by ravish78 »

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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: URL transactional moniotoring

Post by abrist »

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.
Jaysen.ODell
Posts: 9
Joined: Tue Jun 19, 2012 11:53 am

Re: URL transactional moniotoring

Post by Jaysen.ODell »

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:

Code: Select all

<testcasefile>nagios-test.xml</testcasefile>
<globalhttplog>yes</globalhttplog>
<max_redirect>5</max_redirect>
test case file contents:

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

Post by Jaysen.ODell »

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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: URL transactional moniotoring

Post by tmcdonald »

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

Post by Jaysen.ODell »

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.
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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: URL transactional moniotoring

Post by lmiltchev »

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

Post by Jaysen.ODell »

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.
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.
Locked