Page 1 of 1

URL Monitoring Wizard dumping everything after the ? mark

Posted: Fri Feb 07, 2014 12:20 pm
by GldRush98
Run through the url monitoring wizard. Put in a url with args passed in it:
http://mydomain.com/check.php?monitor=1
Click next and it shows the full proper url at the top.
Run through the rest of the monitoring wizard to add the service.
Initial service check then fails. Why? Oh look at the service definition:

Code: Select all

check_xi_service_http!-s "GOOD" -f ok -I 12.34.56.78 -u "/check.php" -p 80
Then if you go in and add the ?monitor=1 back on to the end of the url and Update it, it'll stick.
But, the wizard is breaking the full url, doubling work load when adding in new url monitors. :(

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Fri Feb 07, 2014 1:31 pm
by sreinhardt
Oh that's very interesting, what version of the wizard are you running? I will do some tests and if we can reproduce it will submit a bug report.

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Fri Feb 07, 2014 1:36 pm
by GldRush98
Website URL Version 1.31, which I believe to be the latest.

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Fri Feb 07, 2014 1:43 pm
by sreinhardt
Yep, I think you are right that, that is the latest. I will do some tests and get back to you!

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Tue Feb 11, 2014 11:00 am
by GldRush98
Is there an easy way to fix this?
It's creating quite a bit of additional work while adding in a ton of url monitors, most of which need variables passed in the url like that.

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Tue Feb 11, 2014 1:54 pm
by sreinhardt
I found that modifying the url string within the service check with single quotes (') instead of doubles (") resolved the issue. Using double caused other php and potentially mysql issues. I will post a bug for this internally and hopefully resolve it quickly for you. However presently there is not an easy way short of creating the check and modifying the service once created.

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Tue Feb 11, 2014 1:57 pm
by GldRush98
Ok thank you. I will keep an eye on this thread for a fix.

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Tue Feb 11, 2014 3:56 pm
by lmiltchev
Sure, thanks for bringing our attention to this!

Re: URL Monitoring Wizard dumping everything after the ? mar

Posted: Mon Nov 17, 2014 5:58 pm
by cmerchant
This issue was fixed and incorporated into the source trunk. The fix should be available in the latest version of Nagios XI.