+ enhancements/fix ekara (#3784)

This commit is contained in:
Simon Bomm 2022-07-26 17:16:06 +02:00 committed by GitHub
parent 0aacd77b56
commit 861211f11a
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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; }
}
}
];