mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 07:34:35 +02:00
Fix #109
This commit is contained in:
parent
823178f284
commit
807972e328
@ -87,6 +87,11 @@ sub check_table_cpu {
|
|||||||
my $cpu1min = defined($self->{results}->{$options{entry}}->{$options{min1} . '.' . $instance}) ? sprintf("%.2f", $self->{results}->{$options{entry}}->{$options{min1} . '.' . $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;
|
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;
|
$checked = 1;
|
||||||
my @exits;
|
my @exits;
|
||||||
push @exits, $self->{perfdata}->threshold_check(value => $cpu5sec,
|
push @exits, $self->{perfdata}->threshold_check(value => $cpu5sec,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user