fix list-counters config

This commit is contained in:
garnier-quentin 2019-06-19 10:42:04 +02:00
parent d32ee3a2c4
commit b9017eb4b8
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ sub check_options {
my $label = $_->{label};
$label =~ s/-//g;
$list_counter .= " " . $_->{label};
$th_counter .= " --warning-$label='\$_SERVICEWARNING" . uc($label) . "\$' --critical-$label='\$_SERVICECRITICAL" . uc($label) . "\$'";
$th_counter .= " --warning-$_->{label}='\$_SERVICEWARNING" . uc($label) . "\$' --critical-$_->{label}='\$_SERVICECRITICAL" . uc($label) . "\$'";
}
}
$self->{output}->output_add(short_msg => $list_counter);