From f0b3930a476cca381fb71818440ece15a22f64d6 Mon Sep 17 00:00:00 2001 From: thibaults-centreon Date: Mon, 27 Apr 2020 13:24:06 +0200 Subject: [PATCH] fix(plugin): fix aws vpn --- cloud/aws/vpn/mode/traffic.pm | 2 +- cloud/aws/vpn/plugin.pm | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cloud/aws/vpn/mode/traffic.pm b/cloud/aws/vpn/mode/traffic.pm index 7e8e458d9..db56097a3 100644 --- a/cloud/aws/vpn/mode/traffic.pm +++ b/cloud/aws/vpn/mode/traffic.pm @@ -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; } } diff --git a/cloud/aws/vpn/plugin.pm b/cloud/aws/vpn/plugin.pm index 208a13de7..d07982549 100644 --- a/cloud/aws/vpn/plugin.pm +++ b/cloud/aws/vpn/plugin.pm @@ -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';