Re: [Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Paul Lathrop
On Dec 14, 2007 2:21 PM, Sloane, Robert Raymond <[EMAIL PROTECTED]> wrote: > I don't think the quotes are really disappearing, the echo command just > doesn't see them because they are stripped by the shell. Try putting > single quotes around the whole command line after the echo, and I > suspect t

Re: [Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Paul Lathrop
On Dec 14, 2007 2:14 PM, Sandor W. Sklar <[EMAIL PROTECTED]> wrote: > My nagios.cfg contains ... > > # Illegal characters in macros to be stripped > illegal_macro_output_chars=`~$&|'"<> > > ... I wonder if you have something similar, and if so, if that is > where the quotes are being stripped out.

Re: [Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Sandor W. Sklar
On Dec 14, 2007, at 2:12 PM, Paul Lathrop wrote: > > Andrew, > > Sorry, I forgot to post everything I tried. I have put the quotes in > my command definition. This gives me the same result (when I also > remove the quotes from the service definition). If I leave the quotes > in the service definit

Re: [Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Paul Lathrop
On Dec 14, 2007 2:08 PM, Andrew Cruse <[EMAIL PROTECTED]> wrote: > Paul Lathrop wrote: > > Hi all, > > > > I've been banging my head against this for days, and Googled my eyes > > out to no avail, so I think it is time to bring this to the list. > > > > I have written a plugin in Python which conne

Re: [Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Andrew Cruse
Paul Lathrop wrote: > Hi all, > > I've been banging my head against this for days, and Googled my eyes > out to no avail, so I think it is time to bring this to the list. > > I have written a plugin in Python which connects to a database on > another host, runs an arbitrary query, and (depending

[Nagios-users] Nagios strips quotes from command arguments

2007-12-14 Thread Paul Lathrop
Hi all, I've been banging my head against this for days, and Googled my eyes out to no avail, so I think it is time to bring this to the list. I have written a plugin in Python which connects to a database on another host, runs an arbitrary query, and (depending on the options passed to it) retur