fixed change status WUX

Former-commit-id: 3f557ac0c2d8164bff7c5410b662127d39544f7f
This commit is contained in:
Daniel Barbero Martin 2019-04-25 17:32:43 +02:00
parent 3b03b6fa10
commit 73c9a0e049
1 changed files with 1 additions and 1 deletions

View File

@ -4238,7 +4238,7 @@ sub get_module_status ($$$) {
$critical_str = (defined ($critical_str) && valid_regex ($critical_str) == 1) ? safe_output($critical_str) : ''; $critical_str = (defined ($critical_str) && valid_regex ($critical_str) == 1) ? safe_output($critical_str) : '';
$warning_str = (defined ($warning_str) && valid_regex ($warning_str) == 1) ? safe_output($warning_str) : ''; $warning_str = (defined ($warning_str) && valid_regex ($warning_str) == 1) ? safe_output($warning_str) : '';
if ($module_type =~ m/_proc$/ && ($critical_min eq $critical_max)) { if (($module_type =~ m/_proc$/ || $module_type =~ /web_analysis/) && ($critical_min eq $critical_max)) {
($critical_min, $critical_max) = (0, 1); ($critical_min, $critical_max) = (0, 1);
} }
elsif ($module_type =~ m/keep_alive/ && ($critical_min eq $critical_max)) { elsif ($module_type =~ m/keep_alive/ && ($critical_min eq $critical_max)) {