Fix #25
This commit is contained in:
parent
82bb06cb89
commit
3e015bc5ac
|
@ -50,10 +50,9 @@ sub new {
|
||||||
{
|
{
|
||||||
"warning:s" => { name => 'warning' },
|
"warning:s" => { name => 'warning' },
|
||||||
"critical:s" => { name => 'critical' },
|
"critical:s" => { name => 'critical' },
|
||||||
|
"paging-state-buggy" => { name => 'paging_state_buggy' },
|
||||||
});
|
});
|
||||||
|
|
||||||
$self->{swap_memory_id} = undef;
|
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,6 +115,13 @@ sub run {
|
||||||
if ($results->{$oid_sysDescr}->{$oid_sysDescr . ".0"} =~ /AIX version: 05\./i) {
|
if ($results->{$oid_sysDescr}->{$oid_sysDescr . ".0"} =~ /AIX version: 05\./i) {
|
||||||
$active_swap = 1;
|
$active_swap = 1;
|
||||||
}
|
}
|
||||||
|
if (defined($self->{option_results}->{paging_state_buggy})) {
|
||||||
|
if ($active_swap == 2) {
|
||||||
|
$active_swap = 1;
|
||||||
|
} else {
|
||||||
|
$active_swap = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$self->{output}->output_add(severity => 'OK',
|
$self->{output}->output_add(severity => 'OK',
|
||||||
short_msg => 'All Page spaces are ok.');
|
short_msg => 'All Page spaces are ok.');
|
||||||
|
@ -180,6 +186,10 @@ Threshold warning in percent.
|
||||||
|
|
||||||
Threshold critical in percent.
|
Threshold critical in percent.
|
||||||
|
|
||||||
|
=item B<--paging-state-buggy>
|
||||||
|
|
||||||
|
Paging state can be buggy. Please use the following option to swap state value.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
Loading…
Reference in New Issue