From 0fa87f77090d58deabb1a637f1325592091b13ab Mon Sep 17 00:00:00 2001 From: cgagnaire Date: Thu, 26 Apr 2018 15:13:41 +0000 Subject: [PATCH] fix riverbed steelhead typo (#972) * fix riverbed steelhead typo --- network/riverbed/steelhead/snmp/mode/bwoptimization.pm | 4 ++-- network/riverbed/steelhead/snmp/mode/servicestatus.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/network/riverbed/steelhead/snmp/mode/bwoptimization.pm b/network/riverbed/steelhead/snmp/mode/bwoptimization.pm index 5bd7a437a..b7c580938 100644 --- a/network/riverbed/steelhead/snmp/mode/bwoptimization.pm +++ b/network/riverbed/steelhead/snmp/mode/bwoptimization.pm @@ -64,12 +64,12 @@ sub set_counters { ], } }, - { label => 'wan2lan-lan', set => { + { label => 'lan2wan-wan', set => { key_values => [ { name => 'bwHCAggOutWan', diff => 1 } ], output_template => 'Lan2Wan on Wan: %s %s/s', output_change_bytes => 1, perfdatas => [ - { label => 'wan2lan_lan', value => 'bwHCAggOutWan_absolute', + { label => 'lan2wan_wan', value => 'bwHCAggOutWan_absolute', template => '%s', min => 0, unit => 'B/s' }, ], } diff --git a/network/riverbed/steelhead/snmp/mode/servicestatus.pm b/network/riverbed/steelhead/snmp/mode/servicestatus.pm index 301b2e920..21347f378 100644 --- a/network/riverbed/steelhead/snmp/mode/servicestatus.pm +++ b/network/riverbed/steelhead/snmp/mode/servicestatus.pm @@ -38,7 +38,7 @@ sub custom_status_threshold { eval "$instance_mode->{option_results}->{critical_status}") { $status = 'critical'; } elsif (defined($instance_mode->{option_results}->{warning_status}) && $instance_mode->{option_results}->{warning_status} ne '' && - eval "$instance_mode->{option_results}->{warning_status}") { + eval "$instance_mode->{option_results}->{warning_status}") { $status = 'warning'; } }; @@ -88,7 +88,7 @@ sub new { $options{options}->add_options(arguments => { "warning-status:s" => { name => 'warning_status', default => '' }, - "critical-status:s" => { name => 'critical_status', default => '%{status} !~ /running/' }, + "critical-status:s" => { name => 'critical_status', default => '%{state} !~ /running/' }, }); return $self;