mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
Merge branch 'master' of https://github.com/centreon/centreon-plugins
This commit is contained in:
commit
00dfa5696a
@ -161,7 +161,7 @@ sub new {
|
||||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments => {
|
||||
'volumeid:s@' => { name => 'volume_id' },
|
||||
'volume-id:s@' => { name => 'volume_id' },
|
||||
'per-sec' => { name => 'per_sec' },
|
||||
'filter-metric:s' => { name => 'filter_metric' }
|
||||
});
|
||||
|
@ -189,7 +189,7 @@ sub new {
|
||||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments => {
|
||||
'volumeid:s@' => { name => 'volume_id' },
|
||||
'volume-id:s@' => { name => 'volume_id' },
|
||||
'per-sec' => { name => 'per_sec' },
|
||||
'filter-metric:s' => { name => 'filter_metric' }
|
||||
});
|
||||
|
@ -29,19 +29,25 @@ my %metrics_mapping = (
|
||||
'VolumeTotalReadTime' => {
|
||||
'output' => 'Total Read Time',
|
||||
'label' => 'total-read-time',
|
||||
'nlabel' => { 'absolute' => 'ebs.volume.totalread.time.second' },
|
||||
'nlabel' => {
|
||||
'absolute' => 'ebs.volume.totalread.time.second'
|
||||
},
|
||||
'unit' => 's'
|
||||
},
|
||||
'VolumeTotalWriteTime' => {
|
||||
'output' => 'Total Write Time',
|
||||
'label' => 'total-write-time',
|
||||
'nlabel' => { 'absolute' => 'ebs.volume.totalwrite.time.second' },
|
||||
'nlabel' => {
|
||||
'absolute' => 'ebs.volume.totalwrite.time.second'
|
||||
},
|
||||
'unit' => 's'
|
||||
},
|
||||
'VolumeIdleTime' => {
|
||||
'output' => 'Idle Time',
|
||||
'label' => 'idle-time',
|
||||
'nlabel' => { 'absolute' => 'ebs.volume.idle.time.second' },
|
||||
'nlabel' => {
|
||||
'absolute' => 'ebs.volume.idle.time.second'
|
||||
},
|
||||
'unit' => 's',
|
||||
'display_percent' => 1
|
||||
}
|
||||
@ -154,7 +160,7 @@ sub new {
|
||||
bless $self, $class;
|
||||
|
||||
$options{options}->add_options(arguments => {
|
||||
'volumeid:s@' => { name => 'volume_id' },
|
||||
'volume-id:s@' => { name => 'volume_id' },
|
||||
'filter-metric:s' => { name => 'filter_metric' }
|
||||
});
|
||||
|
||||
|
@ -76,6 +76,13 @@ sub run {
|
||||
$value = $prct_used;
|
||||
%total_options = ( total => $result->{$oid_fwConnTableLimit}, cast_int => 1);
|
||||
}
|
||||
} elsif ($self->{option_results}->{units} eq '%') {
|
||||
$self->{output}->output_add(
|
||||
severity => 'UNKNOWN',
|
||||
short_msg => "Couldn't get fwConnTableLimit OID ($oid_fwConnTableLimit) to compute thresholds"
|
||||
);
|
||||
$self->{output}->display();
|
||||
$self->{output}->exit();
|
||||
}
|
||||
|
||||
my $exit = $self->{perfdata}->threshold_check(value => $value,
|
||||
|
Loading…
x
Reference in New Issue
Block a user