mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
Fix default protocol http expected-content
This commit is contained in:
parent
3fa624a86b
commit
0dcefd1f35
@ -150,7 +150,7 @@ sub check_options {
|
|||||||
|
|
||||||
# Legacy compat
|
# Legacy compat
|
||||||
if (defined($self->{option_results}->{expected_string}) && $self->{option_results}->{expected_string} ne '') {
|
if (defined($self->{option_results}->{expected_string}) && $self->{option_results}->{expected_string} ne '') {
|
||||||
$self->{option_results}->{critical_content} = "%{content} =~ /$self->{option_results}->{expected_string}/mi";
|
$self->{option_results}->{critical_content} = "%{content} !~ /$self->{option_results}->{expected_string}/mi";
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{http}->set_options(%{$self->{option_results}});
|
$self->{http}->set_options(%{$self->{option_results}});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user