Skip to content

Commit

Permalink
Do not check space when keyword is given (district09#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kraus authored and willemdh committed Dec 13, 2017
1 parent d87e1bd commit 2f73f0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions check_netapp_ontap.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1600,8 +1600,10 @@ sub calc_space_health {
}

# Test to see if the monitored object has crossed a defined space threshhold.
($intState, $strOutput, $perfOutput, $hrefSpaceInfo) = space_threshold_helper($intState, $strOutput, $hrefSpaceInfo, $hrefCritThresholds, 2);
($intState, $strOutput, $perfOutput, $hrefSpaceInfo) = space_threshold_helper($intState, $strOutput, $hrefSpaceInfo, $hrefWarnThresholds, 1);
unless ( (defined($hrefCritThresholds->{'strings'}) && @{$hrefCritThresholds->{'strings'}}) || (defined($hrefWarnThresholds->{'strings'}) && @{$hrefWarnThresholds->{'strings'}}) || $hrefWarnThresholds->{'owner'} || $hrefCritThresholds->{'owner'} ) {
($intState, $strOutput, $perfOutput, $hrefSpaceInfo) = space_threshold_helper($intState, $strOutput, $hrefSpaceInfo, $hrefCritThresholds, 2);
($intState, $strOutput, $perfOutput, $hrefSpaceInfo) = space_threshold_helper($intState, $strOutput, $hrefSpaceInfo, $hrefWarnThresholds, 1);
}



Expand Down

0 comments on commit 2f73f0f

Please sign in to comment.