mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
+ 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);
|
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
|
||||||
|
|
||||||
$self->{output} = $options{output};
|
$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);
|
$self->{cache} = centreon::plugins::statefile->new(%options);
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -119,9 +119,7 @@ sub set_counters {
|
|||||||
{ label => 'incident-duration', nlabel => 'ekara.incident.duration.seconds', set => {
|
{ label => 'incident-duration', nlabel => 'ekara.incident.duration.seconds', set => {
|
||||||
key_values => [ { name => 'duration' }, { name => 'start_time' }, { name => 'end_time' }, { name => 'status'} ],
|
key_values => [ { name => 'duration' }, { name => 'start_time' }, { name => 'end_time' }, { name => 'status'} ],
|
||||||
closure_custom_output => $self->can('custom_duration_output'),
|
closure_custom_output => $self->can('custom_duration_output'),
|
||||||
perfdatas => [
|
closure_custom_perfdata => sub { return 0; }
|
||||||
{ template => '%s', min => 0, unit => 's', label_extra_instance => 1 }
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user