Problems with ;

Pete Dewell pete at stuff-done.co.uk
Wed Jul 6 11:39:42 CEST 2005


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. *


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list