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" <m...@ena.com> To: "Nagios Users" <Nagios-users@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@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@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