fix(plugin): fix aws vpn

This commit is contained in:
thibaults-centreon 2020-04-27 13:24:06 +02:00
parent cd39bc261a
commit 93b87f2b4e
2 changed files with 2 additions and 3 deletions

View File

@ -187,7 +187,7 @@ sub set_counters {
closure_custom_perfdata => ($metric =~ /State/) ? $self->can('custom_metric_perfdata_state') : $self->can('custom_metric_perfdata'),
closure_custom_threshold_check => $self->can('custom_metric_threshold'),
}
}
};
push @{$self->{maps_counters}->{statistics}}, $entry;
}
}

View File

@ -32,8 +32,7 @@ sub new {
$self->{version} = '1.0';
%{ $self->{modes} } = (
'traffic' => 'cloud::aws::vpn::mode::traffic',
'listvpn' => 'cloud::aws::vpn::mode::listvpn',
'discovery' => 'cloud::aws::vpn::mode::discovery'
'listvpn' => 'cloud::aws::vpn::mode::listvpn'
);
$self->{custom_modes}{paws} = 'cloud::aws::custom::paws';