URL Monitoring Wizard dumping everything after the ? mark

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

URL Monitoring Wizard dumping everything after the ? mark

Post 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. :(
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: URL Monitoring Wizard dumping everything after the ? mar

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: URL Monitoring Wizard dumping everything after the ? mar

Post by GldRush98 »

Website URL Version 1.31, which I believe to be the latest.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: URL Monitoring Wizard dumping everything after the ? mar

Post by sreinhardt »

Yep, I think you are right that, that is the latest. I will do some tests and get back to you!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: URL Monitoring Wizard dumping everything after the ? mar

Post 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.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: URL Monitoring Wizard dumping everything after the ? mar

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: URL Monitoring Wizard dumping everything after the ? mar

Post by GldRush98 »

Ok thank you. I will keep an eye on this thread for a fix.
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: URL Monitoring Wizard dumping everything after the ? mar

Post by lmiltchev »

Sure, thanks for bringing our attention to this!
Be sure to check out our Knowledgebase for helpful articles and solutions!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: URL Monitoring Wizard dumping everything after the ? mar

Post by cmerchant »

This issue was fixed and incorporated into the source trunk. The fix should be available in the latest version of Nagios XI.
Locked