mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix netapp cluster mode
This commit is contained in:
parent
21b5116500
commit
6551e91dda
@ -155,7 +155,7 @@ sub check_options {
|
||||
sub manage_selection {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
my $cluster = $options{custom}->request_api(endpoint => '/api/storage/cluster?fields=*');
|
||||
my $cluster = $options{custom}->request_api(endpoint => '/api/cluster?fields=*');
|
||||
|
||||
$self->{clusters} = {
|
||||
$cluster->{name} => {
|
||||
@ -173,7 +173,7 @@ sub manage_selection {
|
||||
}
|
||||
};
|
||||
|
||||
my $nodes = $options{custom}->request_api(endpoint => '/api/storage/cluster/nodes?fields=*');
|
||||
my $nodes = $options{custom}->request_api(endpoint => '/api/cluster/nodes?fields=*');
|
||||
foreach (@{$nodes->{records}}) {
|
||||
$self->{clusters}->{ $cluster->{name} }->{nodes}->{ $_->{name} } = {
|
||||
display => $_->{name},
|
||||
|
Loading…
x
Reference in New Issue
Block a user