parent
baa8b8602c
commit
0fa87f7709
|
@ -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' },
|
||||
],
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue