diff --git a/centreon-plugins/hardware/ups/standard/rfc1628/mode/inputlines.pm b/centreon-plugins/hardware/ups/standard/rfc1628/mode/inputlines.pm index d33f7a7e7..2c1f876b4 100644 --- a/centreon-plugins/hardware/ups/standard/rfc1628/mode/inputlines.pm +++ b/centreon-plugins/hardware/ups/standard/rfc1628/mode/inputlines.pm @@ -158,7 +158,7 @@ sub run { foreach (keys %{$maps_counters}) { foreach my $name (keys %{$maps_counters->{$_}->{thresholds}}) { if (defined($self->{counters_value}->{$instance}->{$_}) && $self->{counters_value}->{$instance}->{$_} != 0) { - push @exits, $self->{perfdata}->threshold_check(value => $self->{counters_value}->{$instance}->{$_}, threshold => [ { label => $maps_counters->{$_}->{thresholds}->{$name}->{label}, 'exit_litteral' => $maps_counters->{$_}->{thresholds}->{$name}->{exit_value} }]); + push @exits, $self->{perfdata}->threshold_check(value => $self->{counters_value}->{$instance}->{$_} * $maps_counters->{$_}->{factor}, threshold => [ { label => $maps_counters->{$_}->{thresholds}->{$name}->{label}, 'exit_litteral' => $maps_counters->{$_}->{thresholds}->{$name}->{exit_value} }]); } } } diff --git a/centreon-plugins/hardware/ups/standard/rfc1628/mode/outputlines.pm b/centreon-plugins/hardware/ups/standard/rfc1628/mode/outputlines.pm index bc867b949..4759954ce 100644 --- a/centreon-plugins/hardware/ups/standard/rfc1628/mode/outputlines.pm +++ b/centreon-plugins/hardware/ups/standard/rfc1628/mode/outputlines.pm @@ -198,7 +198,7 @@ sub run { foreach (keys %{$maps_counters}) { foreach my $name (keys %{$maps_counters->{$_}->{thresholds}}) { if (defined($self->{counters_value}->{$instance}->{$_}) && $self->{counters_value}->{$instance}->{$_} != 0) { - push @exits, $self->{perfdata}->threshold_check(value => $self->{counters_value}->{$instance}->{$_}, threshold => [ { label => $maps_counters->{$_}->{thresholds}->{$name}->{label}, 'exit_litteral' => $maps_counters->{$_}->{thresholds}->{$name}->{exit_value} }]); + push @exits, $self->{perfdata}->threshold_check(value => $self->{counters_value}->{$instance}->{$_} * $maps_counters->{$_}->{factor}, threshold => [ { label => $maps_counters->{$_}->{thresholds}->{$name}->{label}, 'exit_litteral' => $maps_counters->{$_}->{thresholds}->{$name}->{exit_value} }]); } } }