Using $ in password
Kareem Mahgoub
kmahgoub at gmail.com
Wed Dec 13 10:01:58 CET 2006
Thanks again for every one replied to me.
I tired all what was suggested, yet nothing is working.
I want to add something, when I add quotes on the password and run the
command and it worked but when nagios parse the config file it didn't work,
showing on the web interface "HTTP WARNING: HTTP/1.0 401 Unauthorized"
Changing the password will be my last option cause there are hundreds of
devices with password having the "$" character
Thanks all for your help
----- Original Message -----
From: "Mike Holloway" <mikhollo at cisco.com>
To: <nagios-users at lists.sourceforge.net>
Sent: Wednesday, December 13, 2006 12:07 AM
Subject: Re: [Nagios-users] Using $ in password
In checkcommands.cfg, try wrapping ARG3 in single quotes on the
command_line. From experience, you are better off changing the
password to not use a $ character.
# 'check_httpp' command definition
define command{
command_name check_httpp
command_line $USER1$/check_http -p $ARG1$ -I $ARG2$ -t
120 -a '$ARG3$'
-mike
On Dec 12, 2006, at 1:49 PM, Kareem Mahgoub wrote:
> Thanks for all who replied to me, but unfortunately the three
> solutions
> didn't work.
> Kindly if anyone has other ideas, post it.
> Regards
> ----- Original Message -----
> From: <Jason.Shein at iovate.com>
> To: <nagios-users at lists.sourceforge.net>
> Sent: Tuesday, December 12, 2006 9:28 PM
> Subject: Re: [Nagios-users] Using $ in password
>
>
>> Normally, doubling the $ sign and eclosing the statement in single
>> quotes
>> works fine.
>>
>> check_command check_httpp!61002!192.168.1.4!:'33$$77'
>>
>>
> ______________________________________________________________________
> ______
> ___
>>
>> Jason Shein
>> Network Administrator – Linux Systems
>> Iovate Health Sciences Inc.
>> 5100 Spectrum Way
>> Mississauga, ON L4W 5S2
>> ( 905 ) - 678 - 3119 x 3136
>> 1 - 888 - 334 - 4448, x 3136 (toll-free)
>> jason.shein at iovate.com
>>
>> Customer Service. Collaboration. Innovation. Efficiency.
>> Iovate's Information Technology Team
>>
>>
> ______________________________________________________________________
> ______
> ___
>>
>> CONFIDENTIALITY NOTICE:
>> THIS ELECTRONIC MAIL TRANSMISSION IS PRIVILEGED AND CONFIDENTIAL
>> AND IS
>> INTENDED ONLY FOR THE REVIEW OF THE PARTY TO WHOM IT IS ADDRESSED.
>> THE INFORMATION CONTAINED IN THIS E-MAIL IS CONFIDENTIAL AND IS
>> DISCLOSED
>> TO YOU UNDER THE EXPRESS UNDERSTANDING THAT YOU WILL NOT DISCLOSE IT
>> OR ITS CONTENTS TO ANY THIRD PARTY WITHOUT THE EXPRESS WRITTEN
>> CONSENT
>> OF AN AUTHORIZED OFFICER OF IOVATE HEALTH SCIENCES SERVICES INC.
>> IF YOU
>> HAVE
>> RECEIVED THIS TRANSMISSION IN ERROR, PLEASE IMMEDIATELY RETURN IT
>> TO THE SENDER.
>>
> ______________________________________________________________________
> ______
> ___
>>
>>
>>
>> "Kareem Mahgoub" <kmahgoub at gmail.com>
>> Sent by: nagios-users-bounces at lists.sourceforge.net
>> 12/12/2006 02:10 PM
>>
>> To
>> <nagios-users at lists.sourceforge.net>
>> cc
>>
>> Subject
>> [Nagios-users] Using $ in password
>>
>>
>>
>>
>>
>>
>> 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?
>>
>> 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.
>>
>> Any help will be much appreciated
>>
>> Regards
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> 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
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> 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
>
>
> ----------------------------------------------------------------------
> ---
> 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
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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