Re: [Nagios-devel] Do not launch a shell for each check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Do not launch a shell for each check

Post by Guest »

I had some problems with command/service-definitions which use quotes.=20
example: check_command check_something!"--param1 --param2"
Please don't forget to add single and double quotes to the list of =
special
characters.

if(!strpbrk(processed_command,"!$^&*()~[]|{};?`'\"")){

Gerhard=20

> -----Urspr=FCngliche Nachricht-----
> Von: Matthieu Kermagoret [mailto:[email protected]]=20
> Gesendet: Mittwoch, 29. September 2010 13:37
> An: Nagios Developers List
> Betreff: Re: [Nagios-devel] Do not launch a shell for each check
>=20
> On Tue, Jun 1, 2010 at 3:49 PM, Matthieu Kermagoret=20
> wrote:
> > The patch I propose, handle simple commands with shell=20
> quoting (simple=20
> > and double quote). Every command containing any of these characters=20
> > (escaped or not) will be handled by the shell --> !$^&*()~[]|{};?`
> > >
> > So any feedback on this new proposal ?
> >
>=20
> Could it somehow make it into HEAD ? It would resolve issue #86.
>=20
> Best regards,
>=20
> --
> Matthieu KERMAGORET | D=E9veloppeur
>=20
> [email protected]
>=20
> MERETHIS est =E9diteur du logiciel Centreon.
>=20
> --------------------------------------------------------------
> ----------------
> Start uncovering the many advantages of virtual appliances=20
> and start using them to simplify application deployment and=20
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked