Merge branch 'master' of https://github.com/centreon/centreon-plugins
This commit is contained in:
commit
6b00f0bbac
|
@ -197,6 +197,8 @@ sub request_api {
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->settings();
|
$self->settings();
|
||||||
|
|
||||||
|
my $lang = $self->{http}->request(method => 'GET', url_path => '/api/set/cli-parameters/locale/English');
|
||||||
|
|
||||||
$self->{output}->output_add(long_msg => "URL: '" . $self->{proto} . '://' . $self->{hostname} . ':' . $self->{port} .
|
$self->{output}->output_add(long_msg => "URL: '" . $self->{proto} . '://' . $self->{hostname} . ':' . $self->{port} .
|
||||||
$options{url_path} . "'", debug => 1);
|
$options{url_path} . "'", debug => 1);
|
||||||
|
|
|
@ -26,7 +26,7 @@ use warnings;
|
||||||
sub load {
|
sub load {
|
||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
|
|
||||||
$self->{json_results}->{sensors} = $self->{custom}->request_api(method => 'GET', url_path => '/api/show/sensors');
|
$self->{json_results}->{sensors} = $self->{custom}->request_api(method => 'GET', url_path => '/api/show/sensor-status');
|
||||||
}
|
}
|
||||||
|
|
||||||
my %mapping = (
|
my %mapping = (
|
||||||
|
|
|
@ -236,27 +236,27 @@ Check controllers statistics.
|
||||||
|
|
||||||
Filter controller name (Can be a regexp).
|
Filter controller name (Can be a regexp).
|
||||||
|
|
||||||
=item B<--warning-*>
|
=item B<--warning-instance-*>
|
||||||
|
|
||||||
Threshold warning.
|
Threshold warning.
|
||||||
Can be: 'controller.data.read.bytespersecond', 'controller.data.written.bytespersecond',
|
Can be: 'controller-data-read-bytespersecond', 'controller-data-written-bytespersecond',
|
||||||
'controller.reads.count', 'controller.writes.count',
|
'controller-reads-count', 'controller-writes-count',
|
||||||
'controller.data.transfer.bytespersecond', 'controller.iops.ops',
|
'controller-data-transfer-bytespersecond', 'controller-iops-ops',
|
||||||
'controller.commands.forwarded.count',
|
'controller-commands-forwarded-count',
|
||||||
'controller.cache.write.usage.percentage', 'controller.cache.write.hits.count',
|
'controller-cache-write-usage-percentage', 'controller-cache-write-hits-count',
|
||||||
'controller.cache.write.misses.count', 'controller.cache.read.hits.count',
|
'controller-cache-write-misses-count', 'controller-cache-read-hits-count',
|
||||||
'controller.cache.read.misses.count', 'controller.cpu.utilization.percentage'.
|
'controller-cache-read-misses-count', 'controller-cpu-utilization-percentage'.
|
||||||
|
|
||||||
=item B<--critical-*>
|
=item B<--critical-instance-*>
|
||||||
|
|
||||||
Threshold critical.
|
Threshold critical.
|
||||||
Can be: 'controller.data.read.bytespersecond', 'controller.data.written.bytespersecond',
|
Can be: 'controller-data-read-bytespersecond', 'controller-data-written-bytespersecond',
|
||||||
'controller.reads.count', 'controller.writes.count',
|
'controller-reads-count', 'controller-writes-count',
|
||||||
'controller.data.transfer.bytespersecond', 'controller.iops.ops',
|
'controller-data-transfer-bytespersecond', 'controller-iops-ops',
|
||||||
'controller.commands.forwarded.count',
|
'controller-commands-forwarded-count',
|
||||||
'controller.cache.write.usage.percentage', 'controller.cache.write.hits.count',
|
'controller-cache-write-usage-percentage', 'controller-cache-write-hits-count',
|
||||||
'controller.cache.write.misses.count', 'controller.cache.read.hits.count',
|
'controller-cache-write-misses-count', 'controller-cache-read-hits-count',
|
||||||
'controller.cache.read.misses.count', 'controller.cpu.utilization.percentage'.
|
'controller-cache-read-misses-count', 'controller-cpu-utilization-percentage'.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
|
@ -216,25 +216,25 @@ Check volumes statistics.
|
||||||
|
|
||||||
Filter volume name (Can be a regexp).
|
Filter volume name (Can be a regexp).
|
||||||
|
|
||||||
=item B<--warning-*>
|
=item B<--warning-instance-*>
|
||||||
|
|
||||||
Threshold warning.
|
Threshold warning.
|
||||||
Can be: 'volume.data.read.bytespersecond', 'volume.data.written.bytespersecond',
|
Can be: 'volume-data-read-bytespersecond', 'volume-data-written-bytespersecond',
|
||||||
'volume.reads.count', 'volume.writes.count',
|
'volume-reads-count', 'volume-writes-count',
|
||||||
'volume.data.transfer.bytespersecond', 'volume.iops.ops',
|
'volume-data-transfer-bytespersecond', 'volume-iops-ops',
|
||||||
'volume.cache.write.usage.percentage', 'volume.cache.write.hits.count',
|
'volume-cache-write-usage-percentage', 'volume-cache-write-hits-count',
|
||||||
'volume.cache.write.misses.count', 'volume.cache.read.hits.count',
|
'volume-cache-write-misses-count', 'volume-cache-read-hits-count',
|
||||||
'volume.cache.read.misses.count'.
|
'volume-cache-read-misses-count'.
|
||||||
|
|
||||||
=item B<--critical-*>
|
=item B<--critical-instance-*>
|
||||||
|
|
||||||
Threshold critical.
|
Threshold critical.
|
||||||
Can be: 'volume.data.read.bytespersecond', 'volume.data.written.bytespersecond',
|
Can be: 'volume-data-read-bytespersecond', 'volume-data-written-bytespersecond',
|
||||||
'volume.reads.count', 'volume.writes.count',
|
'volume-reads-count', 'volume-writes-count',
|
||||||
'volume.data.transfer.bytespersecond', 'volume.iops.ops',
|
'volume-data-transfer-bytespersecond', 'volume-iops-ops',
|
||||||
'volume.cache.write.usage.percentage', 'volume.cache.write.hits.count',
|
'volume-cache-write-usage-percentage', 'volume-cache-write-hits-count',
|
||||||
'volume.cache.write.misses.count', 'volume.cache.read.hits.count',
|
'volume-cache-write-misses-count', 'volume-cache-read-hits-count',
|
||||||
'volume.cache.read.misses.count'.
|
'volume-cache-read-misses-count'.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue