From 510fabae4df3d5868cd646b52fbf2265b527cf81 Mon Sep 17 00:00:00 2001 From: Sims24 Date: Tue, 22 Nov 2016 16:30:48 +0100 Subject: [PATCH] + fix counter/label definition --- apps/protocols/bgp/4/mode/bgppeerstate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/protocols/bgp/4/mode/bgppeerstate.pm b/apps/protocols/bgp/4/mode/bgppeerstate.pm index 2ffd10cb7..fd486f587 100644 --- a/apps/protocols/bgp/4/mode/bgppeerstate.pm +++ b/apps/protocols/bgp/4/mode/bgppeerstate.pm @@ -80,7 +80,7 @@ sub set_counters { { name => 'peers', type => 1, cb_prefix_output => 'prefix_peers_output', message_multiple => 'All BGP peers are ok' }, ]; $self->{maps_counters}->{peers} = [ - { label => 'states', set => { + { label => 'status', threshold => 0, set => { key_values => [ { name => 'adminstate' }, { name => 'peerstate' }, { name => 'display' }, { name => 'local' }, { name => 'remote' }, { name => 'as' } ], closure_custom_calc => $self->can('custom_status_calc'),