+ Enhance emc vplex plugin (finished retest)

This commit is contained in:
garnier-quentin 2015-08-26 15:49:10 +02:00
parent 81a96068e8
commit a792bd3f26
2 changed files with 4 additions and 1 deletions

View File

@ -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}) {

View File

@ -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'",