<!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>AW: [Nagios-users] Problems with ;</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Pete,</FONT>
</P>
<P><FONT SIZE=2>thanks alot for the information ..... it works fine now :-))</FONT>
</P>
<BR>
<P><FONT SIZE=2>Best regards</FONT>
</P>
<P><FONT SIZE=2>Martin</FONT>
</P>
<BR>
<P><FONT SIZE=2>> -----Ursprüngliche Nachricht-----</FONT>
<BR><FONT SIZE=2>> Von: Pete Dewell [<A HREF="mailto:pete@stuff-done.co.uk">mailto:pete@stuff-done.co.uk</A>]</FONT>
<BR><FONT SIZE=2>> Gesendet: Mittwoch, 6. Juli 2005 11:40</FONT>
<BR><FONT SIZE=2>> An: Martin Wolfert</FONT>
<BR><FONT SIZE=2>> Cc: 'nagios-users@lists.sourceforge.net'</FONT>
<BR><FONT SIZE=2>> Betreff: Re: [Nagios-users] Problems with ;</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Try setting up $USER$ variables in the resource.cfg file.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> e.g.</FONT>
<BR><FONT SIZE=2>> $USER1$='bla;foo'</FONT>
<BR><FONT SIZE=2>> $USER2$='pwd'</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Then use the command</FONT>
<BR><FONT SIZE=2>> check_http -t 30 -H $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a </FONT>
<BR><FONT SIZE=2>> "$USER1$:$USER2$"</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I had similar problems with some passwords, and some other person on </FONT>
<BR><FONT SIZE=2>> this list kindly pointed this solution out to me. This also has the </FONT>
<BR><FONT SIZE=2>> benefit of hiding your users/pwds from the standard config files.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Pete Dewell</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Martin Wolfert wrote:</FONT>
<BR><FONT SIZE=2>> > Hi all nagios users,</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > i had to check an service with the check_httpp plugin.</FONT>
<BR><FONT SIZE=2>> > So there is the following line in the checkcommands.cfg:</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > command_line /usr/lib/nagios/plugins/check_http -t 30 -H </FONT>
<BR><FONT SIZE=2>> > $HOSTADDRESS$ -u "$ARG1$$HOSTADDRESS$$ARG2$" -a "bla;foo:pwd"</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > where "bla;foo" is a fix statement for the mandant;client </FONT>
<BR><FONT SIZE=2>> combination, </FONT>
<BR><FONT SIZE=2>> > folowing by the pass, seperated by ":" . This </FONT>
<BR><FONT SIZE=2>> circumstances can not be </FONT>
<BR><FONT SIZE=2>> > changed, because our application (i had to check) needs this syntax.</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > So ... i think, that nagios do NOT like any ";" in his </FONT>
<BR><FONT SIZE=2>> config files, but </FONT>
<BR><FONT SIZE=2>> > i had to work with it on this place :-((.</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Has anyone any workaround to make this http check with the required </FONT>
<BR><FONT SIZE=2>> > syntax ?</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Best regards</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > Martin</FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> > PTV AG</FONT>
<BR><FONT SIZE=2>> > Webadministrator</FONT>
<BR><FONT SIZE=2>> > R2.2 - Betrieb Internet</FONT>
<BR><FONT SIZE=2>> > Tel.: +49 7 21 96 51- 7128</FONT>
<BR><FONT SIZE=2>> > Fax: +49 7 21 96 51- 599</FONT>
<BR><FONT SIZE=2>> > E-Mail: martin.wolfert@ptv.de</FONT>
<BR><FONT SIZE=2>> > ____________________________</FONT>
<BR><FONT SIZE=2>> > PTV</FONT>
<BR><FONT SIZE=2>> > Planung Transport Verkehr AG</FONT>
<BR><FONT SIZE=2>> > Stumpfstrasse 1</FONT>
<BR><FONT SIZE=2>> > 76131 Karlsruhe</FONT>
<BR><FONT SIZE=2>> > Germany</FONT>
<BR><FONT SIZE=2>> > <A HREF="http://www.ptv.de" TARGET="_blank">http://www.ptv.de</A></FONT>
<BR><FONT SIZE=2>> > <A HREF="http://www.Reiseplanung.de" TARGET="_blank">http://www.Reiseplanung.de</A></FONT>
<BR><FONT SIZE=2>> > <A HREF="http://www.varta-guide.de" TARGET="_blank">http://www.varta-guide.de</A></FONT>
<BR><FONT SIZE=2>> > <A HREF="http://www.CityGuideFinder.de" TARGET="_blank">http://www.CityGuideFinder.de</A></FONT>
<BR><FONT SIZE=2>> > </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> Pete Dewell | Stuff Done</FONT>
<BR><FONT SIZE=2>> pete@stuff-done.co.uk</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> ** The information contained in this message, including any </FONT>
<BR><FONT SIZE=2>> attachment,</FONT>
<BR><FONT SIZE=2>> is confidential and may be privileged or otherwise protected from</FONT>
<BR><FONT SIZE=2>> disclosure. The information is intended only for the person </FONT>
<BR><FONT SIZE=2>> or entity to</FONT>
<BR><FONT SIZE=2>> which it is addressed. If you are not the intended recipient, please</FONT>
<BR><FONT SIZE=2>> contact the sender and delete this message from your system. </FONT>
<BR><FONT SIZE=2>> Any review,</FONT>
<BR><FONT SIZE=2>> re-transmission, distribution or other use of this information by</FONT>
<BR><FONT SIZE=2>> persons or entities other than the intended recipient is prohibited. *</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>