Using '!' in check_* argument

MAD sri.lumpa at free.fr
Fri Mar 6 18:40:49 CET 2009


I'm using Nagios 3.0.6 on a CentOS 5.2

I tryed escaping the (!) with  a (\) but it didn't work. I forgot to tell
(and I've just realized it is probably important) I use NagiosQL to create
the service. Is it possible that NagiosQL didn't escape the (! ) but the (\)
when he writes the cfg file ?

Macr-André

----- Original Message ----- 
From: "Marc Powell" <marc at ena.com>
To: "Nagios Users" <Nagios-users at lists.sourceforge.net>
Sent: Friday, March 06, 2009 4:04 PM
Subject: Re: [Nagios-users] Using '!' in check_* argument


>
> On Mar 6, 2009, at 8:54 AM, MAD wrote:
>
>> Is there a way to use '!' in arguments ? I tried by escaping it with
>> a '\', quoting it... Nothing worked.
>
>
>
> What version of nagios are  you using? New in 3.x --
>
> http://nagios.sourceforge.net/docs/3_0/macros.html
>
> "TipTip: If you need to pass bang (!) characters in your command
> arguments, you can do so by escaping them with a backslash (\). If you
> need to include backslashes in your command arguments, they should
> also be escaped with a backslash. "
>
> --
> Marc
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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