I am trying to demo nagios xi and get this error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
robertrein
Posts: 4
Joined: Tue Oct 05, 2010 12:22 pm

I am trying to demo nagios xi and get this error

Post by robertrein »

http://shop.advanceautoparts.com/webapp ... pable=true

This is the HTTP URL that must be sent to test, and it tells me invalid URL...why

Running the same wexact thing in HYPERIC and it works
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: I am trying to demo nagios xi and get this error

Post by mmestnik »

http://shop.advanceautoparts.com/webapp ... pable=true

Code: Select all

http://shop.advanceautoparts.com/webapp/wcs/stores/servlet/AjaxOrderItemAdd?storeId=10151&langId=-1&catalogId=10051&vehicleId_1=439458&vehicleDescription_1=2009+BMW+328I+3.0L+2996CC+L6+FI+VIN%3A+N52&category=&partType=&orderId=.&outOrderName=orderId&URL=OrderCalculate%3FupdatePrices%3D1%26calculationUsageId%3D-1%26URL%3DOrderItemDisplay%3FpartNumber*%3D%26quantity*%3D%26orderItemId*%3D&status=N&partNumber_1=15670614&quantity_1=1&isShippable=true
I'd guess it's because your URL is getting encoded, check the settings in the CCM. I would not thing that this is too long or that there is an issue with '_'s in variable names. That is to say the most likely reason is some where along the way your URL is getting changed so that it would pass through some API, like an "HTML hidden input."
robertrein
Posts: 4
Joined: Tue Oct 05, 2010 12:22 pm

Re: I am trying to demo nagios xi and get this error

Post by robertrein »

I am sorry I did not understand the previous post....

I know more now then I did before however while trying to use your monitoring wizard, I tried to submit the following URL...

http://www.bjupresshomeschool.com/webap ... ___2240484

It replied with invalid url

I removed the dashes...and it accepted the URL
http://www.bjupresshomeschool.com/webap ... ___2240484

The dashes are valid in the web browser and needed to properly monitor the site....

Please advise?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: I am trying to demo nagios xi and get this error

Post by mguthrie »

This is the HTTP URL that must be sent to test, and it tells me invalid URL...why
Can you give us a little more detail on this? Which check are you running? Are you inserting this URL as a host address? Use you using a wizard or the CCM to set up this service?


There are some security features in XI that sometimes filter characters from form entries to prevent hacks and cross site scripting. Can you send both the URL that you're inputting into XI, and then also send the actual URL that XI outputs? I want to see if it's changing or encoding any of the characters. Also, make sure to put the URL into the "code" tags so we can see the whole thing. Thanks.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: I am trying to demo nagios xi and get this error

Post by mguthrie »

Let me test this url on our end and I'll see what I can find out....
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: I am trying to demo nagios xi and get this error

Post by mguthrie »

This looks like it might actually be a bug in our form validation. My guess is that it's not allowing the character because of security concerns. I'm going to report this on the bug tracker. I did, however, find what appears to be a workaround.

If you add a backslash before each of the dashes, it will escape the illegal character and allow it to pass through. I also tested it in the browser and this will bring up the page correctly. Not ideal, but it should work until we get the big fixed.


http://www.bjupresshomeschool.com/webap ... ___2240484
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: I am trying to demo nagios xi and get this error

Post by mguthrie »

Reported on the bug tracker. You can follow the progress with the link below. Thanks for the heads up!

http://tracker.nagios.com/view.php?id=92
Locked