Bob Ingraham wrote:
> Gents,
>
> My work had me create a patch for the get_raw_command_line() function in
> utils.c to allow us to "escape" the "!" argument separator within check
> command arguments.
>
> I generalized it such that you can actually escape any character by
> prefacing it with a backslash ('\'). So, now you can have command args
> that include exclamations points as part of the argmument string.
>
> For example:
>
> check_command check_web!www.nagios.org!80!\!Test\!String\!!10!20
>
> This will pass the third argument as: "!Test!String!" (sans quotes)
>
> Bob
>
Sounds interesting - send the patch to the list and I'll look at it for
inclusion in Nagios 3.x. Thanks!
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]