+ Enhance emc vplex plugin (finished retest)
This commit is contained in:
parent
81a96068e8
commit
a792bd3f26
|
@ -91,6 +91,9 @@ sub run {
|
|||
my ($self, %options) = @_;
|
||||
my $vplex = $options{custom};
|
||||
|
||||
$self->{output}->output_add(severity => 'OK',
|
||||
short_msg => 'All Cluster Witness components are OK');
|
||||
|
||||
my $urlbase = '/vplex/cluster-witness/components/';
|
||||
my $items = $vplex->get_items(url => $urlbase);
|
||||
foreach my $name (sort keys %{$items}) {
|
||||
|
|
|
@ -110,7 +110,7 @@ sub run {
|
|||
$instance,
|
||||
$items->{$cluster_name}->{$device_name}->{'health-state'}));
|
||||
|
||||
my $exit = $self->get_severity(section => 'volume_health', instance => $instance, value => $items->{$cluster_name}->{$device_name}->{'health-state'});
|
||||
my $exit = $self->get_severity(section => 'device_health', instance => $instance, value => $items->{$cluster_name}->{$device_name}->{'health-state'});
|
||||
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
|
||||
$self->{output}->output_add(severity => $exit,
|
||||
short_msg => sprintf("Device '%s' health state is '%s'",
|
||||
|
|
Loading…
Reference in New Issue