Using $ in password

Andreas Ericsson ae at op5.se
Wed Dec 13 09:56:32 CET 2006


Kareem Mahgoub wrote:
> Dear All,
> 
> I have a simple question. What should I do to include the character $ as one
> of the password characters in the check command?
> 

As the docs state, escape it with $, so that you have
$$3cr3t

when the real password is actually
$3cr3t

> Here are some required information:
> 
> 1- OS FC 5
> 
> 2- kernel 2.6.18-1
> 
> 3- Nagios version 2.5
> 
> 4- The command definition
> 
> # 'check_httpp' command definition
> define command{
>         command_name    check_httpp
>         command_line    $USER1$/check_http -p $ARG1$ -I $ARG2$ -t 120 -a
> $ARG3$
>         }
> 5- The service configuration
> 
> define service{
>         use                             generic-service
>         host_name                       XXXX
>         service_description             YYY
>         contact_groups                  ZZZ
>         check_command                   check_httpp!61002!192.168.1.4!:33$77
>         }
> When I execute the command manually it works.
> 


So this should be

check_command                   check_httpp!61002!192.168.1.4!:33$$77

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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