WEB Transaction

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zumbachkat
Posts: 4
Joined: Fri Jan 29, 2010 7:49 pm

WEB Transaction

Post by zumbachkat »

I am trying to monitor an https web services site that requires some paramets and values to complete the monitoring.

An example is:
url:
https://my.website.com/my/service.svd/info

Parameter: number Value: 7011111111
Parameter: next_page Value: /300

I'm a total newbie and I've looked at the webinject site and cannot find anything that looks like it will fit my bill. Any help will be greatly appreciated.

Thanks,

kz
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: WEB Transaction

Post by tonyyarusso »

There are two possibilities for how those parameters could be passed and received. The first is an HTTP GET and the second is an HTTP POST. Which one you require depends on what the my/service.svd/info page expects. If it is GET it's easy - you just put it in the URL, eg

Code: Select all

https://my.website.com/my/service.svd/info?number=7011111111&next_page=/300
For POST data, see pages 4 and 5 of the document on http://library.nagios.com/library/produ ... -nagios-xi.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
zumbachkat
Posts: 4
Joined: Fri Jan 29, 2010 7:49 pm

Re: WEB Transaction

Post by zumbachkat »

Thanks! Unfortunately it's a post. and this this doesn't seem to be correct.
WebInject CRITICAL - Test case number 1 failed
Any other suggestions?

<testcases repeat="1">
<case
id="1"
url="//https://pluto.snoopy.com"
/>
<case
id="2"
method="post"
url="https://pluto.snoopy.com/test/service.svc/GetInfo"
verifypositive="number=6103692020"
verifynextpositve="next_page=/300"

/>
</testcases>
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: WEB Transaction

Post by mguthrie »

Bear with me as I'm not terribly familiar with the Web transaction wizard, but is your your url correct?
zumbachkat
Posts: 4
Joined: Fri Jan 29, 2010 7:49 pm

Re: WEB Transaction

Post by zumbachkat »

sorry, that was a typo.
<testcases repeat="1">
<case
id="1"
url="https://pluto.xxxx.com/rest/xxxx.svc/GetMemberInfo"
method="post"
posttype="text/xml"
verifypositve="?number=xxxxxxxxxxx"
verifynextpostive="next_page=/300"
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: WEB Transaction

Post by mmestnik »

I don't think the wizard supports

Code: Select all

posttype="text/xml"
You may have to resort to using postbody that is not a file as is with this posttype.

You could still use this is you planted the files on the server yourself. You would then just set postbody appropriately for where you uploaded the file.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: WEB Transaction

Post by tonyyarusso »

First, be careful of typos - "verifypositive" and "verifynextpositive" should have three Is.
Second, it's possible that the slash before the 300 needs to be escaped, a la my note of
Note that certain special characters need to be escaped. For instance, the < should be replaced with \x3C so as not to interfere with the XML, and within POST data URL escapes are used, so for instance @ becomes %40.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked