From 08bdd0cda369a5cc7898bf6671c683f10025a020 Mon Sep 17 00:00:00 2001 From: meni2029 <56351431+meni2029@users.noreply.github.com> Date: Mon, 31 Aug 2020 08:48:37 +0200 Subject: [PATCH] fix dell fastpath cpu 5sec thresholds (#2167) --- centreon/common/dell/fastpath/snmp/mode/cpu.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/centreon/common/dell/fastpath/snmp/mode/cpu.pm b/centreon/common/dell/fastpath/snmp/mode/cpu.pm index 2fed79e9a..26c94163a 100644 --- a/centreon/common/dell/fastpath/snmp/mode/cpu.pm +++ b/centreon/common/dell/fastpath/snmp/mode/cpu.pm @@ -45,8 +45,8 @@ sub check_options { ($self->{warn5s}, $self->{warn1m}, $self->{warn5m}) = split /,/, $self->{option_results}->{warning}; ($self->{crit5s}, $self->{crit1m}, $self->{crit5m}) = split /,/, $self->{option_results}->{critical}; - if (($self->{perfdata}->threshold_validate(label => 'warn1s', value => $self->{warn5s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong warning (1sec) threshold '" . $self->{warn5s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'warn5s', value => $self->{warn5s})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong warning (5sec) threshold '" . $self->{warn5s} . "'."); $self->{output}->option_exit(); } if (($self->{perfdata}->threshold_validate(label => 'warn1m', value => $self->{warn1m})) == 0) { @@ -57,8 +57,8 @@ sub check_options { $self->{output}->add_option_msg(short_msg => "Wrong warning (5min) threshold '" . $self->{warn5m} . "'."); $self->{output}->option_exit(); } - if (($self->{perfdata}->threshold_validate(label => 'crit1s', value => $self->{crit5s})) == 0) { - $self->{output}->add_option_msg(short_msg => "Wrong critical (1sec) threshold '" . $self->{crit5s} . "'."); + if (($self->{perfdata}->threshold_validate(label => 'crit5s', value => $self->{crit5s})) == 0) { + $self->{output}->add_option_msg(short_msg => "Wrong critical (5sec) threshold '" . $self->{crit5s} . "'."); $self->{output}->option_exit(); } if (($self->{perfdata}->threshold_validate(label => 'crit1m', value => $self->{crit1m})) == 0) {