Merge branch 'ent-7841-siguen-fallando-intervalos-inversos' into 'develop'

Fixed issue with inversed intervals

Closes pandora_enterprise#7841

See merge request artica/pandorafms!4321
This commit is contained in:
Daniel Rodriguez 2021-07-22 11:03:13 +00:00
commit b517d64b87
1 changed files with 2 additions and 2 deletions

View File

@ -4702,9 +4702,9 @@ sub get_module_status ($$$) {
# (-inf, warning_min), [warning_max, +inf) # (-inf, warning_min), [warning_max, +inf)
else { else {
if ($warning_min == 0) { if ($warning_min == 0) {
return 1 if ($data > $warning_max); return 2 if ($data > $warning_max);
}elsif ($warning_max == 0) { }elsif ($warning_max == 0) {
return 1 if ($data <= $warning_min); return 2 if ($data <= $warning_min);
} else { } else {
return 2 if ($data < $warning_min || $data >= $warning_max); return 2 if ($data < $warning_min || $data >= $warning_max);
return 2 if ($data <= $warning_max && $warning_max < $warning_min); return 2 if ($data <= $warning_max && $warning_max < $warning_min);