From f70569a759214124155efed0b32f8cdc65eafe51 Mon Sep 17 00:00:00 2001 From: lchrdn <89968908+lchrdn@users.noreply.github.com> Date: Fri, 19 Aug 2022 13:40:35 +0200 Subject: [PATCH] fix missing string counter type resulting in unknown thresholds (#3850) --- .../microsoft/sccm/local/mode/databasereplicationstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm b/centreon-plugins/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm index 4147bbd6f..03382fe8f 100644 --- a/centreon-plugins/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm +++ b/centreon-plugins/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm @@ -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'),