From d01768e8fa1d2f4c5512be8414ae0163bfd10b1c Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 30 Jan 2017 16:19:23 +0100 Subject: [PATCH] + Fix interface mcast out issue --- snmp_standard/mode/interfaces.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/snmp_standard/mode/interfaces.pm b/snmp_standard/mode/interfaces.pm index 9d1d177d3..63d1505c0 100644 --- a/snmp_standard/mode/interfaces.pm +++ b/snmp_standard/mode/interfaces.pm @@ -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' }, ], }