<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Using double slashes ?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi,</FONT>
</P>

<P><FONT SIZE=2>I am trying to get the check_http plug-in to work, so I can check a proxy server.</FONT>
</P>

<P><FONT SIZE=2>The command I try to use is: </FONT>
</P>

<P><FONT SIZE=2>./check_http -H $HOSTADDRESS$ -u <A HREF="http://www.yahoo.com" TARGET="_blank">http://www.yahoo.com</A> -e HTTP/1.1 200</FONT>
</P>

<P><FONT SIZE=2>Though the command works fine from the bash shell on RH 9 under the nagios user account, it doesn't work through the scripts...</FONT></P>

<P><FONT SIZE=2>When executing from the shell I get a HTTP Ok response, from the scripts it returns a HTTP CRITICAL.</FONT>
</P>

<P><FONT SIZE=2>I am using nagios-1.1 and nagios-plugins-1.3.1 (check_http (1.24.2.4) from SourceForge...</FONT>
</P>

<P><FONT SIZE=2>My hunch is that the // in the URL are not taken literal but are being interpreted by nagios. Anyone any ideas, or a possible workaround? I have already tried using \ as escape char, using %47%47, creating a macro in resources.cfg, double quoting the URL, and passing it from services to a $ARG1$ macro in my check_command, and combinations of these. Nothing worked so far..</FONT></P>

<P><FONT SIZE=2>Ideas anyone???</FONT>
</P>

<P><FONT SIZE=2>Thanks,</FONT>
</P>

<P><FONT SIZE=2>Danny</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>My files look as follows:</FONT>
</P>

<P><FONT SIZE=2>checkcommands.cfg:</FONT>
</P>

<P><FONT SIZE=2>define command{</FONT>
<BR><FONT SIZE=2>        command_name    check_http_proxy</FONT>
<BR><FONT SIZE=2>        command_line    $USER1$/check_http -I $HOSTADDRESS$ -u <A HREF="http://www.yahoo.com" TARGET="_blank">http://www.yahoo.com</A> -e HTTP/1.1 200</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>services.cfg:</FONT>
</P>

<P><FONT SIZE=2>define service {</FONT>
<BR><FONT SIZE=2>name                            generic-service-template</FONT>
<BR><FONT SIZE=2>active_checks_enabled           1       </FONT>
<BR><FONT SIZE=2>passive_checks_enabled          1       </FONT>
<BR><FONT SIZE=2>parallelize_check               1      </FONT>
<BR><FONT SIZE=2>obsess_over_service             1       </FONT>
<BR><FONT SIZE=2>check_freshness                 0       </FONT>
<BR><FONT SIZE=2>notifications_enabled           1       </FONT>
<BR><FONT SIZE=2>event_handler_enabled           1       </FONT>
<BR><FONT SIZE=2>flap_detection_enabled          1      </FONT>
<BR><FONT SIZE=2>process_perf_data               1       </FONT>
<BR><FONT SIZE=2>retain_status_information       1       </FONT>
<BR><FONT SIZE=2>retain_nonstatus_information    1      </FONT>
<BR><FONT SIZE=2>max_check_attempts              3</FONT>
<BR><FONT SIZE=2>normal_check_interval           5</FONT>
<BR><FONT SIZE=2>retry_check_interval            2</FONT>
<BR><FONT SIZE=2>check_period                    24x7</FONT>
<BR><FONT SIZE=2>notification_interval           240</FONT>
<BR><FONT SIZE=2>notification_period             24x7</FONT>
<BR><FONT SIZE=2>notification_options            w,c</FONT>
<BR><FONT SIZE=2>register                        0</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>

<P><FONT SIZE=2>define service {</FONT>
<BR><FONT SIZE=2>        name                    http-proxy-template</FONT>
<BR><FONT SIZE=2>        service_description     HTTP Proxy</FONT>
<BR><FONT SIZE=2>        check_command           check_http_proxy</FONT>
<BR><FONT SIZE=2>        use                     generic-service-template</FONT>
<BR><FONT SIZE=2>        register                0</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>

<P><FONT SIZE=2>define service {</FONT>
<BR><FONT SIZE=2>        hostgroup_name          proxy-srv</FONT>
<BR><FONT SIZE=2>        contact_groups          admin-group</FONT>
<BR><FONT SIZE=2>        use                     http-proxy-template</FONT>
<BR><FONT SIZE=2>        }</FONT>
</P>
<BR>
<BR>
<BR>
<BR>


<HR>
This e-mail message has been scanned for Viruses and Content and cleared.
<HR>
</BODY>
</HTML>