|Keep It Simple, Stupid|
Nagios::Plugin --extra-opts auto quote?by Skeeve (Vicar)
|on May 23, 2012 at 12:27 UTC||Need Help??|
Skeeve has asked for the
wisdom of the Perl Monks concerning the following question:
I'm doing my first Nagios plugin based on Nagios::Plugins and I noticed that it automatically supports --extra-opts.
So I did my first attempt with this feature as it seem to well fit my needs.
unfortunately I observed 2 strange behaviours:
Some code to play with:
Output is (shortened)
Which is wrong. If you change "msg|message=s" to "message|msg=s" the output will be almost correct:
Quoting isn't done properly, I think. When I use this configuration file:
I get a very unusual quoted string: ""%d" OK"