+ Fix interface mcast out issue
This commit is contained in:
parent
8ecb80d575
commit
d01768e8fa
|
@ -456,12 +456,12 @@ sub set_counters {
|
|||
};
|
||||
$self->{maps_counters}->{int}->{'065_out-mcast'} = { filter => 'add_cast',
|
||||
set => {
|
||||
key_values => [ { name => 'iucast', diff => 1 }, { name => 'imcast', diff => 1 }, { name => 'ibcast', diff => 1 }, { name => 'display' }, { name => 'mode_cast' } ],
|
||||
closure_custom_calc => \&custom_cast_calc, closure_custom_calc_extra_options => { label_ref => 'ibcast', total_ref1 => 'iucast', total_ref2 => 'imcast' },
|
||||
output_template => 'In Bcast : %.2f %%', output_error_template => 'In Bcast : %s',
|
||||
output_use => 'ibcast_prct', threshold_use => 'ibcast_prct',
|
||||
key_values => [ { name => 'oucast', diff => 1 }, { name => 'omcast', diff => 1 }, { name => 'obcast', diff => 1 }, { name => 'display' }, { name => 'mode_cast' } ],
|
||||
closure_custom_calc => \&custom_cast_calc, closure_custom_calc_extra_options => { label_ref => 'oucast', total_ref1 => 'omcast', total_ref2 => 'obcast' },
|
||||
output_template => 'Out Mcast : %.2f %%', output_error_template => 'Out Mcast : %s',
|
||||
output_use => 'omcast_prct', threshold_use => 'omcast_prct',
|
||||
perfdatas => [
|
||||
{ value => 'ibcast_prct', template => '%.2f',
|
||||
{ value => 'omcast_prct', template => '%.2f',
|
||||
unit => '%', min => 0, max => 100, label_extra_instance => 1, instance_use => 'display' },
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue