Fix cisco cpu

This commit is contained in:
Quentin Garnier 2015-04-28 13:43:42 +02:00
parent 8bd400ceb8
commit 81894be5d7
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ sub check_table_cpu {
push @exits, $self->{perfdata}->threshold_check(value => $cpu5sec,
threshold => [ { label => 'crit5s', exit_litteral => 'critical' }, { label => 'warn5s', exit_litteral => 'warning' } ]) if (defined($cpu5sec));
push @exits, $self->{perfdata}->threshold_check(value => $cpu1min,
threshold => [ { label => 'crit1m', 'exit_litteral => 'critical' }, { label => 'warn1m', exit_litteral => 'warning' } ]) if (defined($cpu1min));
threshold => [ { label => 'crit1m', exit_litteral => 'critical' }, { label => 'warn1m', exit_litteral => 'warning' } ]) if (defined($cpu1min));
push @exits, $self->{perfdata}->threshold_check(value => $cpu5min,
threshold => [ { label => 'crit5m', exit_litteral => 'critical' }, { label => 'warn5m', exit_litteral => 'warning' } ]) if (defined($cpu5min));
my $exit = $self->{output}->get_most_critical(status => \@exits);