[Nagiosplug-help] check_http syntax
Subhendu Ghosh
sghosh at sghosh.org
Wed Nov 19 13:00:03 CET 2003
On Mon, 17 Nov 2003, Jim Matthews wrote:
> Hi
>
> This command works from the command line:
>
> # ./check_http -H testbox.duke.edu -u
> "/search?q=skjellyfetti&client=collections_organizations&output=xml_no_dtd&proxystylesheet=testing.xsl"
>
> So I set up a command under checkcommands.cfg:
>
> # 'check_http' with a specific URL
> define command{
> command_name check_http_url
> command_line $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$
> }
>
> However, when I try and use this command in the services.cfg, it's never
> successfull (I always get a HTTP 500 error). I've tried the following
> syntax:
>
> check_command
> check_http_url!testbox.duke.edu!/search?q=skjellyfetti&client=collections_organizations&output=xml_no_dtd&proxystylesheet=testing.xsl
> check_command
> check_http_url!testbox.duke.edu!"/search?q=skjellyfetti&client=collections_organizations&output=xml_no_dtd&proxystylesheet=testing.xsl"
> check_command
> check_http_url!testbox.duke.edu!'/search?q=skjellyfetti&client=collections_organizations&output=xml_no_dtd&proxystylesheet=testing.xsl'
>
> Is there another way I should be quoting my -u string?
try url encoding the string...
http://www.ascii.cl/htmlcodes.htm (FAQ ID 0157)
--
-sg
More information about the Help
mailing list