diff --git a/pandora_server/lib/PandoraFMS/DB.pm b/pandora_server/lib/PandoraFMS/DB.pm index 4a42019023..993f4e1fe8 100644 --- a/pandora_server/lib/PandoraFMS/DB.pm +++ b/pandora_server/lib/PandoraFMS/DB.pm @@ -622,8 +622,8 @@ sub get_agent_status ($$$) { $module_status = 3; } elsif ($module_status != 3) { - if ($m_status == 3) { - $module_status = 3; + if ($m_status == 0) { + $module_status = 0; } } }