state of all interfaces reset to UNKNOWN when node becames unreachable
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 6 Apr 2017 13:37:24 +0000 (16:37 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 6 Apr 2017 13:37:24 +0000 (16:37 +0300)
src/server/core/netobj.cpp
src/server/core/node.cpp

index 07063bf..3e1c513 100644 (file)
@@ -919,7 +919,7 @@ void NetObj::calculateCompoundStatus(BOOL bForcedRecalc)
       }
    }
 
-   // If DCI status is calculated for object apply DCI object's statud
+   // If DCI status is calculated for object apply DCI object's status
    if (mostCriticalDCI != STATUS_UNKNOWN)
    {
       if (m_status == STATUS_UNKNOWN)
index 8a17b58..d899032 100644 (file)
@@ -1590,8 +1590,7 @@ restart_agent_check:
                for(int i = 0; i < m_childList->size(); i++)
                {
                   NetObj *curr = m_childList->get(i);
-                  if (((curr->getObjectClass() == OBJECT_INTERFACE) || (curr->getObjectClass() == OBJECT_NETWORKSERVICE)) &&
-                      (curr->getStatus() == STATUS_CRITICAL))
+                  if ((curr->getObjectClass() == OBJECT_INTERFACE) || (curr->getObjectClass() == OBJECT_NETWORKSERVICE))
                   {
                      curr->resetStatus();
                   }