This commit is contained in:
garnier-quentin 2016-09-09 15:28:02 +02:00
parent 0faaec35cb
commit 916a7eefbd
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ sub run {
my $current_value = $result2->{$oid_prtMarkerSuppliesLevel . '.' . $instance};
my $max_value = $result2->{$oid_prtMarkerSuppliesMaxCapacity . '.' . $instance};
if (!defined($unit_managed{$unit})) {
$self->{output}->output_add(long_msg => "Skipping marker supply '$descr': unit not managed.");
if (!defined($unit) || !defined($unit_managed{$unit})) {
$self->{output}->output_add(long_msg => "Skipping marker supply '$descr': no unit or not managed.");
next;
}
if ($current_value == -1) {