This commit is contained in:
garnier-quentin 2015-07-28 18:47:10 +02:00
parent 823178f284
commit 807972e328
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ sub check_table_cpu {
my $cpu5sec = defined($self->{results}->{$options{entry}}->{$options{sec5} . '.' . $instance}) ? sprintf("%.2f", $self->{results}->{$options{entry}}->{$options{sec5} . '.' . $instance}) : undef;
my $cpu1min = defined($self->{results}->{$options{entry}}->{$options{min1} . '.' . $instance}) ? sprintf("%.2f", $self->{results}->{$options{entry}}->{$options{min1} . '.' . $instance}) : undef;
my $cpu5min = defined($self->{results}->{$options{entry}}->{$options{min5} . '.' . $instance}) ? sprintf("%.2f", $self->{results}->{$options{entry}}->{$options{min5} . '.' . $instance}) : undef;
# Case that it's maybe other CPU oid in table for datas.
if (!defined($cpu5sec) && !defined($cpu1min) && !defined($cpu5min)) {
return 0;
}
$checked = 1;
my @exits;
push @exits, $self->{perfdata}->threshold_check(value => $cpu5sec,