AW: Problems with ;

Martin Wolfert Martin.Wolfert at ptv.de
Wed Jul 6 14:20:39 CEST 2005


Hi Pete,

thanks alot for the information ..... it works fine now :-))


Best regards

Martin


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


More information about the Users mailing list