+ enhancements/fix ekara (#3784)
This commit is contained in:
parent
0aacd77b56
commit
861211f11a
|
@ -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;
|
||||
|
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue