Web Transaction Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kiran_j
Posts: 2
Joined: Sun Feb 19, 2017 9:56 am

Web Transaction Issue

Post by kiran_j »

Hi All,

I am trying to test the Web Transaction Wizard, An Online Store Example given in PDF "Nagios XI – Monitoring Websites With Nagios XI"
However facing below issue, could you please help me to understand and resolve this issue-

Code: Select all

Starting WebInject Engine...

-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 1
Login page
Verify : "Sign in"
Passed Positive Verification
Passed HTTP Response Code Verification (not in error range)
Use of uninitialized value $_ in substitution (s///) at ./webinject.pl line 1161.
TEST CASE PASSED
Response Time = 0.279 sec
-------------------------------------------------------
Use of uninitialized value in substitution (s///) at ./webinject.pl line 1148.
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 2
Sign in
Verify : "https://members.oreilly.com/account/benefits"
Failed Positive Verification
Failed HTTP Response Code Verification (HTTP/1.1 500 Internal Server Error)
TEST CASE FAILED
Response Time = 0.235 sec
-------------------------------------------------------
Use of uninitialized value in substitution (s///) at ./webinject.pl line 1148.
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 3
Members page
Verify : "view or edit your account information"
Use of uninitialized value $scheme in pattern match (m//) at /usr/share/perl5/vendor_perl/HTTP/Cookies.pm line 44.
Failed Positive Verification
Failed - No Response
TEST CASE FAILED
Response Time = 0 sec
-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 4
Book price
Verify : "59.95"
Failed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE FAILED
Response Time = 0.075 sec
-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 5
Book added to cart
Verify : "Nagios, 2Ed"
Failed Positive Verification
Failed - No Response
TEST CASE FAILED
Response Time = 61.34 sec
-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 6
Book still in cart
Verify : "Nagios, 2Ed"
Verify Negative: "Backorder"
Failed Positive Verification
Passed Negative Verification
Failed - No Response
TEST CASE FAILED
Response Time = 61.204 sec
-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 7
Logout
Verify : "http://oreilly.com/"
Failed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE FAILED
Response Time = 0.139 sec
-------------------------------------------------------
Test:  www_oreilly_com___OReilly_Media_web_site_testdata.xml - 8
Main page
Verify : "News & Commentary"
Failed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE FAILED
Response Time = 0.06 sec
-------------------------------------------------------

Start Time: Tue Feb 21 08:23:33 2017
Total Run Time: 123.433 seconds

Test Cases Run: 8
Test Cases Passed: 1
Test Cases Failed: 7
Verifications Passed: 6
Verifications Failed: 11

Regards,
Kiran
Last edited by dwhitfield on Tue Feb 21, 2017 1:23 pm, edited 1 time in total.
Reason: code block
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Web Transaction Issue

Post by dwhitfield »

Above the O Reilly stuff at https://assets.nagios.com/downloads/nag ... ios-XI.pdf there is an example using the Nagios Exchange. Were you able to get that one working?

I don't mean to suggest we can't get webinject working for you, but the webinject site has been down for some time, so I don't know what that project is looking like long term. Maybe they just decided to use a different site. Anyway, I know in the past one of our MVPs has suggested http://search.cpan.org/~petdance/WWW-Me ... chanize.pm instead of WebInject, so you might want to take a look at that. I've not personally done no testing with mechanize, but you might find it useful.
kiran_j
Posts: 2
Joined: Sun Feb 19, 2017 9:56 am

Re: Web Transaction Issue

Post by kiran_j »

Thanks for the update.

there is an example using the Nagios Exchange. Were you able to get that one working?
Yes, Nagios Exchange Search tested and working fine.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Web Transaction Issue

Post by mcapra »

My best guess is that the O'Reilly Media website changed since this test case was last written. We may need to remove that from the documentation or revise it. I think it's safe to disregard this particular example if the Nagios Exchange example worked fine.
Former Nagios employee
https://www.mcapra.com/
Locked