fix missing string counter type resulting in unknown thresholds (#3850)

This commit is contained in:
lchrdn 2022-08-19 13:40:35 +02:00 committed by GitHub
parent 26d262e094
commit f70569a759
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ sub set_counters {
];
$self->{maps_counters}->{global} = [
{ label => 'link-status', threshold => 0, set => {
{ label => 'link-status', type => 2, set => {
key_values => [ { name => 'LinkStatus' } ],
closure_custom_calc => $self->can('custom_status_calc'),
closure_custom_output => $self->can('custom_status_output'),
@ -128,7 +128,7 @@ sub set_counters {
];
$self->{maps_counters}->{sites} = [
{ label => 'site-status', threshold => 0, set => {
{ label => 'site-status', type => 2, set => {
key_values => [ { name => 'SiteType' }, { name => 'SiteStatus' }, { name => 'SiteToSiteGlobalState' },
{ name => 'SiteToSiteGlobalSyncTime' } ],
closure_custom_calc => $self->can('custom_site_status_calc'),