mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-25 22:55:15 +02:00
fix(plugin): fix aws vpn
This commit is contained in:
parent
cd39bc261a
commit
93b87f2b4e
@ -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_perfdata => ($metric =~ /State/) ? $self->can('custom_metric_perfdata_state') : $self->can('custom_metric_perfdata'),
|
||||||
closure_custom_threshold_check => $self->can('custom_metric_threshold'),
|
closure_custom_threshold_check => $self->can('custom_metric_threshold'),
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
push @{$self->{maps_counters}->{statistics}}, $entry;
|
push @{$self->{maps_counters}->{statistics}}, $entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,7 @@ sub new {
|
|||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
%{ $self->{modes} } = (
|
%{ $self->{modes} } = (
|
||||||
'traffic' => 'cloud::aws::vpn::mode::traffic',
|
'traffic' => 'cloud::aws::vpn::mode::traffic',
|
||||||
'listvpn' => 'cloud::aws::vpn::mode::listvpn',
|
'listvpn' => 'cloud::aws::vpn::mode::listvpn'
|
||||||
'discovery' => 'cloud::aws::vpn::mode::discovery'
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$self->{custom_modes}{paws} = 'cloud::aws::custom::paws';
|
$self->{custom_modes}{paws} = 'cloud::aws::custom::paws';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user