mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
fix missing string counter type resulting in unknown thresholds (#3850)
This commit is contained in:
parent
26d262e094
commit
f70569a759
@ -117,7 +117,7 @@ sub set_counters {
|
|||||||
];
|
];
|
||||||
|
|
||||||
$self->{maps_counters}->{global} = [
|
$self->{maps_counters}->{global} = [
|
||||||
{ label => 'link-status', threshold => 0, set => {
|
{ label => 'link-status', type => 2, set => {
|
||||||
key_values => [ { name => 'LinkStatus' } ],
|
key_values => [ { name => 'LinkStatus' } ],
|
||||||
closure_custom_calc => $self->can('custom_status_calc'),
|
closure_custom_calc => $self->can('custom_status_calc'),
|
||||||
closure_custom_output => $self->can('custom_status_output'),
|
closure_custom_output => $self->can('custom_status_output'),
|
||||||
@ -128,7 +128,7 @@ sub set_counters {
|
|||||||
];
|
];
|
||||||
|
|
||||||
$self->{maps_counters}->{sites} = [
|
$self->{maps_counters}->{sites} = [
|
||||||
{ label => 'site-status', threshold => 0, set => {
|
{ label => 'site-status', type => 2, set => {
|
||||||
key_values => [ { name => 'SiteType' }, { name => 'SiteStatus' }, { name => 'SiteToSiteGlobalState' },
|
key_values => [ { name => 'SiteType' }, { name => 'SiteStatus' }, { name => 'SiteToSiteGlobalState' },
|
||||||
{ name => 'SiteToSiteGlobalSyncTime' } ],
|
{ name => 'SiteToSiteGlobalSyncTime' } ],
|
||||||
closure_custom_calc => $self->can('custom_site_status_calc'),
|
closure_custom_calc => $self->can('custom_site_status_calc'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user