From 20ebd8a7d935518c095a9cd25020b26d0a6bf81a Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 25 Jun 2015 14:18:08 +0200 Subject: [PATCH] + fix netapp filesys mode --- storage/netapp/snmp/mode/filesys.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/netapp/snmp/mode/filesys.pm b/storage/netapp/snmp/mode/filesys.pm index f95757eef..324391881 100644 --- a/storage/netapp/snmp/mode/filesys.pm +++ b/storage/netapp/snmp/mode/filesys.pm @@ -78,13 +78,13 @@ sub custom_usage_perfdata { warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{label}, %total_options), critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{label}, %total_options), min => 0, max => $self->{result_values}->{total}); - if (defined($self->{result_values}->{dfCompressSavedPercent}) && $self->{result_values}->{dfCompressSavedPercent} ne '' + if (defined($self->{result_values}->{dfCompressSavedPercent}) && $self->{result_values}->{dfCompressSavedPercent} ne '' && $self->{result_values}->{dfCompressSavedPercent} >= 0) { $self->{output}->perfdata_add(label => 'compresssaved' . $extra_label, unit => '%', value => $self->{result_values}->{dfCompressSavedPercent}, min => 0, max => 100); } - if (defined($self->{result_values}->{dfDedupeSavedPercent}) && $self->{result_values}->{dfDedupeSavedPercent} ne '' + if (defined($self->{result_values}->{dfDedupeSavedPercent}) && $self->{result_values}->{dfDedupeSavedPercent} ne '' && $self->{result_values}->{dfDedupeSavedPercent} >= 0) { $self->{output}->perfdata_add(label => 'dedupsaved' . $extra_label, unit => '%', value => $self->{result_values}->{dfDedupeSavedPercent},