This commit is contained in:
garnier-quentin 2019-06-06 15:07:37 +02:00
commit 6b00f0bbac
4 changed files with 33 additions and 31 deletions

View File

@ -198,6 +198,8 @@ sub request_api {
$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} .
$options{url_path} . "'", debug => 1);

View File

@ -26,7 +26,7 @@ use warnings;
sub load {
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 = (

View File

@ -236,27 +236,27 @@ Check controllers statistics.
Filter controller name (Can be a regexp).
=item B<--warning-*>
=item B<--warning-instance-*>
Threshold warning.
Can be: 'controller.data.read.bytespersecond', 'controller.data.written.bytespersecond',
'controller.reads.count', 'controller.writes.count',
'controller.data.transfer.bytespersecond', 'controller.iops.ops',
'controller.commands.forwarded.count',
'controller.cache.write.usage.percentage', 'controller.cache.write.hits.count',
'controller.cache.write.misses.count', 'controller.cache.read.hits.count',
'controller.cache.read.misses.count', 'controller.cpu.utilization.percentage'.
Can be: 'controller-data-read-bytespersecond', 'controller-data-written-bytespersecond',
'controller-reads-count', 'controller-writes-count',
'controller-data-transfer-bytespersecond', 'controller-iops-ops',
'controller-commands-forwarded-count',
'controller-cache-write-usage-percentage', 'controller-cache-write-hits-count',
'controller-cache-write-misses-count', 'controller-cache-read-hits-count',
'controller-cache-read-misses-count', 'controller-cpu-utilization-percentage'.
=item B<--critical-*>
=item B<--critical-instance-*>
Threshold critical.
Can be: 'controller.data.read.bytespersecond', 'controller.data.written.bytespersecond',
'controller.reads.count', 'controller.writes.count',
'controller.data.transfer.bytespersecond', 'controller.iops.ops',
'controller.commands.forwarded.count',
'controller.cache.write.usage.percentage', 'controller.cache.write.hits.count',
'controller.cache.write.misses.count', 'controller.cache.read.hits.count',
'controller.cache.read.misses.count', 'controller.cpu.utilization.percentage'.
Can be: 'controller-data-read-bytespersecond', 'controller-data-written-bytespersecond',
'controller-reads-count', 'controller-writes-count',
'controller-data-transfer-bytespersecond', 'controller-iops-ops',
'controller-commands-forwarded-count',
'controller-cache-write-usage-percentage', 'controller-cache-write-hits-count',
'controller-cache-write-misses-count', 'controller-cache-read-hits-count',
'controller-cache-read-misses-count', 'controller-cpu-utilization-percentage'.
=back

View File

@ -216,25 +216,25 @@ Check volumes statistics.
Filter volume name (Can be a regexp).
=item B<--warning-*>
=item B<--warning-instance-*>
Threshold warning.
Can be: 'volume.data.read.bytespersecond', 'volume.data.written.bytespersecond',
'volume.reads.count', 'volume.writes.count',
'volume.data.transfer.bytespersecond', 'volume.iops.ops',
'volume.cache.write.usage.percentage', 'volume.cache.write.hits.count',
'volume.cache.write.misses.count', 'volume.cache.read.hits.count',
'volume.cache.read.misses.count'.
Can be: 'volume-data-read-bytespersecond', 'volume-data-written-bytespersecond',
'volume-reads-count', 'volume-writes-count',
'volume-data-transfer-bytespersecond', 'volume-iops-ops',
'volume-cache-write-usage-percentage', 'volume-cache-write-hits-count',
'volume-cache-write-misses-count', 'volume-cache-read-hits-count',
'volume-cache-read-misses-count'.
=item B<--critical-*>
=item B<--critical-instance-*>
Threshold critical.
Can be: 'volume.data.read.bytespersecond', 'volume.data.written.bytespersecond',
'volume.reads.count', 'volume.writes.count',
'volume.data.transfer.bytespersecond', 'volume.iops.ops',
'volume.cache.write.usage.percentage', 'volume.cache.write.hits.count',
'volume.cache.write.misses.count', 'volume.cache.read.hits.count',
'volume.cache.read.misses.count'.
Can be: 'volume-data-read-bytespersecond', 'volume-data-written-bytespersecond',
'volume-reads-count', 'volume-writes-count',
'volume-data-transfer-bytespersecond', 'volume-iops-ops',
'volume-cache-write-usage-percentage', 'volume-cache-write-hits-count',
'volume-cache-write-misses-count', 'volume-cache-read-hits-count',
'volume-cache-read-misses-count'.
=back