Re: [Nagios-devel] Double escaping in $ARGx$

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] Double escaping in $ARGx$

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ethan Galstad wrote:
> Ton Voon wrote:
>> Hi!
>>
>> I've raised a bug report in Mantis re: double escaping: http://tracker.nagios.org/view.php?id=56
>>
>> I'm convinced this is bad behaviour, but want some confirmation
>> (Ethan? Andreas?) that this is correct action before I spend the time
>> in making changes, especially as it is likely to break existing
>> configurations too.
>>
>> Comments?
>>
>> Ton
>
> I believe this behavior was requested by users quite a while back.
> Changing it will likely break many configurations. Better to make sure
> the current behavior is well documented, than change it I think...

A bit off-topic, but I believe it would be nice to have a way to execute
commands directly rather than using the shell. I'm thinking of a
different command option that could be used instead of "command_line"...
i.e.:

command_exec $USER1$/check_dummy!1!WARNING: $SERVICEDESC$ is stale.

Basically, the first argument is the full path to the executable, and
following ones are the argument array passed to execve. Bangs (!) would
be argument separators (like in service definitions) with maybe the
possibility of escaping them (otherwise a bang in a macro can do the trick).

That would give much more flexibility when complex parameters must be
passed.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKcxNO6dZ+Kt5BchYRAjeYAJ4wzP7b+eib9KKyI+EONNfkYxCrKgCgsVjD
4y1IPXUSagoywEOFFAoRUKM=
=F2FN
-----END PGP SIGNATURE-----





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