Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SNMP-Effective CPAN distribution.

Report information
The Basics
Id: 72440
Status: resolved
Priority: 0/
Queue: SNMP-Effective

People
Owner: JHTHORSEN [...] cpan.org
Requestors: sh [...] keff.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0801
Fixed in: (no value)



Subject: per-host arguments is broken
Hi It seems that per-host arguments is broken. If I choose to add $poller->add { desthost => '1.3.3.7', arg => { Community => "test" } } $poller->add { desthost => '1.3.3.8', arg => { Community => "test2" } } It will poll both hosts using the "test" community. Same goes for callback and heap. I think the problematic code is the following, diff Effective_orig.pm Effective.pm 289,291c289,291 < arg => $in{'arg'} || $self->arg, < callback => $in{'callback'} || $self- Show quoted text
>callback,
< heap => $in{'heap'} || $self->heap, --- Show quoted text
> arg => $self->arg, > callback => $self->callback, > heap => $self->heap,
Patch is applied in 1.09. Should be available on CPAN soon. https://github.com/jhthorsen/snmp-effective/commit/dcba969a2382175e8af0789bacfef7fc76b81144