From 535f08a741fb3bf7ab8d65b22382d7e4e95f7a1e Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Wed, 30 Sep 2020 18:58:34 +0200 Subject: [PATCH] fix(plugin) wrong counter mapping --- network/versa/director/restapi/mode/devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/versa/director/restapi/mode/devices.pm b/network/versa/director/restapi/mode/devices.pm index 40e675ed1..266b0960b 100644 --- a/network/versa/director/restapi/mode/devices.pm +++ b/network/versa/director/restapi/mode/devices.pm @@ -205,7 +205,7 @@ sub set_counters { foreach my $monitor (('bgp', 'config', 'ike', 'interface', 'port', 'path', 'reachability', 'service')) { foreach my $status (('up', 'down', 'disabled')) { - push @{$self->{maps_counters}->{$monitor}}, { + push @{$self->{maps_counters}->{'devices_' . $monitor . '_health'}}, { label => $monitor . '-health-' . $status, nlabel => 'health.' . $status . '.count', set => { key_values => [ { name => $status }, { name => 'display' } ],