Merge pull request #1967 from centreon/tibs_aws_vpn

fix(plugin): fix aws vpn
This commit is contained in:
qgarnier 2020-04-27 13:34:21 +02:00 committed by GitHub
commit 9c2e2d479f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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';