check_http with invalid characters in URL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

check_http with invalid characters in URL

Post by ecarrasq »

System Info
Linux Distribution and version?

*Linux version 2.6.18-274.3.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Sep 6 20:14:03 EDT 2011
CentOS release 5.7 (Final)

32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.

ISSUE

How can I use the "check_http" with a URL that contains special characters?

(the URL would look something like this, this is not the actual URL)
Last edited by ecarrasq on Mon Jun 04, 2012 9:50 am, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_http with invalid characters in URL

Post by scottwilkerson »

You should be able to wrap the URI in single quotes, something like

Code: Select all

./check_http -H test.testingwebsite.org -u '/mgen/imagesize.ms\?args\=\%22csi\:/184228/TSSY/184228\-TSSY\_20120320\_140155\_APR\.jpg\%22\,200\,266\&JP\=1\&NC\=1'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: check_http with invalid characters in URL

Post by ecarrasq »

That worked!

Earlier I must have missed one, "\" during my tests.

Thank you!
Eddie
Locked