fix riverbed steelhead typo (#972)

* fix riverbed steelhead typo
This commit is contained in:
cgagnaire 2018-04-26 15:13:41 +00:00 committed by Simon Bomm
parent baa8b8602c
commit 0fa87f7709
2 changed files with 4 additions and 4 deletions

View File

@ -64,12 +64,12 @@ sub set_counters {
], ],
} }
}, },
{ label => 'wan2lan-lan', set => { { label => 'lan2wan-wan', set => {
key_values => [ { name => 'bwHCAggOutWan', diff => 1 } ], key_values => [ { name => 'bwHCAggOutWan', diff => 1 } ],
output_template => 'Lan2Wan on Wan: %s %s/s', output_template => 'Lan2Wan on Wan: %s %s/s',
output_change_bytes => 1, output_change_bytes => 1,
perfdatas => [ perfdatas => [
{ label => 'wan2lan_lan', value => 'bwHCAggOutWan_absolute', { label => 'lan2wan_wan', value => 'bwHCAggOutWan_absolute',
template => '%s', min => 0, unit => 'B/s' }, template => '%s', min => 0, unit => 'B/s' },
], ],
} }

View File

@ -38,7 +38,7 @@ sub custom_status_threshold {
eval "$instance_mode->{option_results}->{critical_status}") { eval "$instance_mode->{option_results}->{critical_status}") {
$status = 'critical'; $status = 'critical';
} elsif (defined($instance_mode->{option_results}->{warning_status}) && $instance_mode->{option_results}->{warning_status} ne '' && } 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'; $status = 'warning';
} }
}; };
@ -88,7 +88,7 @@ sub new {
$options{options}->add_options(arguments => $options{options}->add_options(arguments =>
{ {
"warning-status:s" => { name => 'warning_status', default => '' }, "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; return $self;