+ add monitor in perfdata name (#2238)

I forgot this one last time I commited ...
This commit is contained in:
Simon Bomm 2020-10-05 17:13:06 +02:00 committed by GitHub
parent a18d15d5b2
commit 7e729ac5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,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}->{'device_' . $monitor . '_health'}}, {
label => $monitor . '-health-' . $status, nlabel => 'health.' . $status . '.count',
label => $monitor . '-health-' . $status, nlabel => $monitor . '.health.' . $status . '.count',
set => {
key_values => [ { name => $status }, { name => 'display' } ],
output_template => $status . ': %s',