[pve-devel] Add support for external graphite metric server

Dietmar Maurer dietmar at proxmox.com
Mon Jun 22 17:25:05 CEST 2015



> On June 22, 2015 at 4:53 PM Alexandre DERUMIER <aderumier at odiso.com> wrote:
> 
> 
> Hi Dietmar, 
> 
> I have a bug in current plugin framework
> 
> inside Graphite.pm
> 
> for example
> sub update_node_status {
>     my ($plugin_config, $node, $data, $ctime) = @_;
> 
> }
> 
> The $plugin_config var content = 'PVE::Status::Graphite'  ???
> 
> 
> in pvestatd, this is correct
> 
> my $plugin_config = $status_cfg->{ids}->{$id};
> 
> I have the hashref with plugin options
> 
> 
> Any idea ?
> 

Sorry, the first element is the $class. So please correct 
the function signature to:

sub update_node_status {
     my ($class, $plugin_config, $node, $data, $ctime) = @_;

Does that work?




More information about the pve-devel mailing list