enh netapp filesys

This commit is contained in:
garnier-quentin 2019-09-18 10:14:24 +02:00
parent 53e18eae53
commit 5dbcd33418
1 changed files with 7 additions and 2 deletions

View File

@ -239,14 +239,19 @@ my $mapping3 = {
sub get_vserver_state {
my ($self, %options) = @_;
return if (!defined($self->{option_results}->{filter_vserver_state}) || $self->{option_results}->{filter_vserver} eq '');
return if (
(!defined($self->{option_results}->{filter_vserver_state}) || $self->{option_results}->{filter_vserver} eq '') &&
(!defined($self->{option_results}->{warning_vserver_status}) || $self->{option_results}->{warning_vserver_status} eq '') &&
(!defined($self->{option_results}->{critical_vserver_status}) || $self->{option_results}->{critical_vserver_status} eq '') &&
(!defined($self->{option_results}->{unknown_vserver_status}) || $self->{option_results}->{unknown_vserver_status} eq '')
);
my $snmp_result = $options{snmp}->get_multiple_table(
oids => [
{ oid => $mapping3->{vserverName}->{oid} },
{ oid => $mapping3->{vserverState}->{oid} }
],
return_type => 1,
nothing_quit => 1
);
$self->{vserver} = {};