mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 16:45:04 +02:00
fix oracle zs zfs rest api
This commit is contained in:
parent
2c5b827a96
commit
98f537c5cf
@ -328,6 +328,7 @@ sub request {
|
|||||||
$self->set_proxy(%options);
|
$self->set_proxy(%options);
|
||||||
$self->set_extra_curl_opt(%options);
|
$self->set_extra_curl_opt(%options);
|
||||||
|
|
||||||
|
$self->{response_body} = '';
|
||||||
$self->curl_setopt(option => $self->{constant_cb}->(name => 'CURLOPT_FILE'), parameter => \$self->{response_body});
|
$self->curl_setopt(option => $self->{constant_cb}->(name => 'CURLOPT_FILE'), parameter => \$self->{response_body});
|
||||||
$self->{nheaders} = 0;
|
$self->{nheaders} = 0;
|
||||||
$self->{response_headers} = [{}];
|
$self->{response_headers} = [{}];
|
||||||
|
@ -36,7 +36,7 @@ sub check {
|
|||||||
next if ($self->check_filter(section => 'chassis', instance => $instance));
|
next if ($self->check_filter(section => 'chassis', instance => $instance));
|
||||||
$self->{components}->{chassis}->{total}++;
|
$self->{components}->{chassis}->{total}++;
|
||||||
|
|
||||||
my $status = $_->{faulted} ? 'faulted' : 'ok';
|
my $status = $chassis->{faulted} ? 'faulted' : 'ok';
|
||||||
$self->{output}->output_add(
|
$self->{output}->output_add(
|
||||||
long_msg => sprintf(
|
long_msg => sprintf(
|
||||||
"chassis '%s' status is '%s' [instance = %s]",
|
"chassis '%s' status is '%s' [instance = %s]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user