fix catalog_status_threshold
This commit is contained in:
parent
d3aaad0bb3
commit
4aae329d78
|
@ -38,8 +38,8 @@ sub catalog_status_threshold {
|
||||||
|
|
||||||
my $label = $self->{label};
|
my $label = $self->{label};
|
||||||
$label =~ s/-/_/g;
|
$label =~ s/-/_/g;
|
||||||
if (defined($self->{instance_mode}->{option_results}->{ok_status}) && $self->{instance_mode}->{option_results}->{ok_status} ne '' &&
|
if (defined($self->{instance_mode}->{option_results}->{'ok_' . $label}) && $self->{instance_mode}->{option_results}->{'ok_' . $label} ne '' &&
|
||||||
eval "$self->{instance_mode}->{option_results}->{ok_status}") {
|
eval "$self->{instance_mode}->{option_results}->{'ok_' . $label}") {
|
||||||
$status = 'ok';
|
$status = 'ok';
|
||||||
} elsif (defined($self->{instance_mode}->{option_results}->{'critical_' . $label}) && $self->{instance_mode}->{option_results}->{'critical_' . $label} ne '' &&
|
} elsif (defined($self->{instance_mode}->{option_results}->{'critical_' . $label}) && $self->{instance_mode}->{option_results}->{'critical_' . $label} ne '' &&
|
||||||
eval "$self->{instance_mode}->{option_results}->{'critical_' . $label}") {
|
eval "$self->{instance_mode}->{option_results}->{'critical_' . $label}") {
|
||||||
|
|
Loading…
Reference in New Issue