[Nagiosplug-devel] N::P bug in handling >2 repeated arguments from .ini config

Ton Voon ton.voon at altinity.com
Fri Nov 16 14:21:25 CET 2007


On 16 Nov 2007, at 12:42, Thomas Guyot-Sionnest wrote:

>> I just added duplicate arguments support for a N::P plugin (=s@).  
>> From
>> command-line it works like a charm, but when using more than two
>> repeated arguments in nagios-plugins.ini I get something like this:
>>
>> $VAR1 = [
>>           'ARRAY(0x8545ee8)',
>>           'string_from_last_argument'
>>         ];
>>
>> I'm not sure if there is a reason for the particular syntax in
>> lib/Nagios/Plugin/Config.pm but changing it to a simple push fixed  
>> the
>> problem. Since it's not much tested I'd like that someone review it
>> before it goes in...
>
> Ok, no comments yet and this is definitely broken. I'll commit this  
> soon
> is no one objects.

Does look like a bug. Have you got a testcase that fails?

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon






More information about the Devel mailing list