fix(plugin) wrong counter mapping

This commit is contained in:
Simon Bomm 2020-09-30 18:58:34 +02:00 committed by GitHub
parent 0a30502e91
commit 535f08a741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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' } ],