diff --git a/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/custom/api.pm b/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/custom/api.pm index 00ec63d1a..f340ce24f 100644 --- a/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/custom/api.pm +++ b/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/custom/api.pm @@ -56,7 +56,7 @@ sub new { $options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1); $self->{output} = $options{output}; - $self->{http} = centreon::plugins::http->new(%options); + $self->{http} = centreon::plugins::http->new(%options, default_backend => 'curl'); $self->{cache} = centreon::plugins::statefile->new(%options); return $self; diff --git a/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/mode/incidents.pm b/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/mode/incidents.pm index 59c29e530..39ca36caf 100644 --- a/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/mode/incidents.pm +++ b/centreon-plugins/apps/monitoring/iplabel/ekara/restapi/mode/incidents.pm @@ -119,9 +119,7 @@ sub set_counters { { label => 'incident-duration', nlabel => 'ekara.incident.duration.seconds', set => { key_values => [ { name => 'duration' }, { name => 'start_time' }, { name => 'end_time' }, { name => 'status'} ], closure_custom_output => $self->can('custom_duration_output'), - perfdatas => [ - { template => '%s', min => 0, unit => 's', label_extra_instance => 1 } - ] + closure_custom_perfdata => sub { return 0; } } } ];