* { font-family: Consolas, Lucida Console, Courier New; font-size: 100%; }
h1 { font-size: 150%; }
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
pre { line-height: 100%; width: 100%; }
.highlight span { width: 100%; display:-moz-inline-stack; display:inline-block; zoom:1; *display:inline; }
body { background: #ffffff; }
body .c { color: #999988; font-style: italic } /* Comment */
body .err { color: #a61717; background-color: #e3d2d2 } /* Error */
body .k { font-weight: bold } /* Keyword */
body .o { font-weight: bold } /* Operator */
body .cm { color: #999988; font-style: italic } /* Comment.Multiline */
body .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
body .c1 { color: #999988; font-style: italic } /* Comment.Single */
body .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
body .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
body .ge { font-style: italic } /* Generic.Emph */
body .gr { color: #aa0000 } /* Generic.Error */
body .gh { color: #999999 } /* Generic.Heading */
body .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
body .go { color: #888888 } /* Generic.Output */
body .gp { color: #555555 } /* Generic.Prompt */
body .gs { font-weight: bold } /* Generic.Strong */
body .gu { color: #aaaaaa } /* Generic.Subheading */
body .gt { color: #aa0000 } /* Generic.Traceback */
body .kc { font-weight: bold } /* Keyword.Constant */
body .kd { font-weight: bold } /* Keyword.Declaration */
body .kp { font-weight: bold } /* Keyword.Pseudo */
body .kr { font-weight: bold } /* Keyword.Reserved */
body .kt { color: #445588; font-weight: bold } /* Keyword.Type */
body .m { color: #009999 } /* Literal.Number */
body .s { color: #bb8844 } /* Literal.String */
body .na { color: #008080 } /* Name.Attribute */
body .nb { color: #999999 } /* Name.Builtin */
body .nc { color: #445588; font-weight: bold } /* Name.Class */
body .no { color: #008080 } /* Name.Constant */
body .ni { color: #800080 } /* Name.Entity */
body .ne { color: #990000; font-weight: bold } /* Name.Exception */
body .nf { color: #990000; font-weight: bold } /* Name.Function */
body .nn { color: #555555 } /* Name.Namespace */
body .nt { color: #000080 } /* Name.Tag */
body .nv { color: #008080 } /* Name.Variable */
body .ow { font-weight: bold } /* Operator.Word */
body .w { color: #bbbbbb } /* Text.Whitespace */
body .mf { color: #009999 } /* Literal.Number.Float */
body .mh { color: #009999 } /* Literal.Number.Hex */
body .mi { color: #009999 } /* Literal.Number.Integer */
body .mo { color: #009999 } /* Literal.Number.Oct */
body .sb { color: #bb8844 } /* Literal.String.Backtick */
body .sc { color: #bb8844 } /* Literal.String.Char */
body .sd { color: #bb8844 } /* Literal.String.Doc */
body .s2 { color: #bb8844 } /* Literal.String.Double */
body .se { color: #bb8844 } /* Literal.String.Escape */
body .sh { color: #bb8844 } /* Literal.String.Heredoc */
body .si { color: #bb8844 } /* Literal.String.Interpol */
body .sx { color: #bb8844 } /* Literal.String.Other */
body .sr { color: #808000 } /* Literal.String.Regex */
body .s1 { color: #bb8844 } /* Literal.String.Single */
body .ss { color: #bb8844 } /* Literal.String.Symbol */
body .bp { color: #999999 } /* Name.Builtin.Pseudo */
body .vc { color: #008080 } /* Name.Variable.Class */
body .vg { color: #008080 } /* Name.Variable.Global */
body .vi { color: #008080 } /* Name.Variable.Instance */
body .il { color: #009999 } /* Literal.Number.Integer.Long */
Info
Revision:3414
Author:victor
Date:2008-08-19 18:46:06 +0300 (Tue, 19 Aug 2008)
Comment:additional debug output
Changes
U trunk/src/server/core/interface.cpp
U trunk/src/server/core/node.cpp
Diff
Modified: trunk/src/server/core/interface.cpp
===================================================================
--- trunk/src/server/core/interface.cpp 2008-08-19 14:49:56 UTC (rev 3413)
+++ trunk/src/server/core/interface.cpp 2008-08-19 15:46:06 UTC (rev 3414)
@@ -280,6 +280,7 @@
{
SendPollerMsg(dwRqId, " Retrieving interface status from NetXMS agent\r\n");
newStatus = pNode->GetInterfaceStatusFromAgent(m_dwIfIndex);
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): new status from NetXMS agent %d"), m_dwId, m_szName, newStatus);
if (newStatus != STATUS_UNKNOWN)
bNeedPoll = FALSE;
}
@@ -289,6 +290,7 @@
{
SendPollerMsg(dwRqId, " Retrieving interface status from SNMP agent\r\n");
newStatus = pNode->GetInterfaceStatusFromSNMP(pTransport, m_dwIfIndex);
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): new status from SNMP %d"), m_dwId, m_szName, newStatus);
if (newStatus != STATUS_UNKNOWN)
bNeedPoll = FALSE;
}
@@ -309,14 +311,17 @@
(m_dwIfType == IFTYPE_NETXMS_NAT_ADAPTER)))
{
SendPollerMsg(dwRqId, " Starting ICMP ping\r\n");
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): calling IcmpPing(0x%08X,3,1500,NULL,%d)"), m_dwId, m_szName, htonl(m_dwIpAddr), g_dwPingSize);
dwPingStatus = IcmpPing(htonl(m_dwIpAddr), 3, 1500, NULL, g_dwPingSize);
if (dwPingStatus == ICMP_RAW_SOCK_FAILED)
WriteLog(MSG_RAW_SOCK_FAILED, EVENTLOG_WARNING_TYPE, NULL);
newStatus = (dwPingStatus == ICMP_SUCCESS) ? STATUS_NORMAL : STATUS_CRITICAL;
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): ping result %d, new status %d"), m_dwId, m_szName, dwPingStatus, newStatus);
}
else
{
// Interface doesn't have an IP address, so we can't ping it
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): no IP address, will not ping"), m_dwId, m_szName);
newStatus = STATUS_UNKNOWN;
}
}
@@ -349,6 +354,7 @@
if (m_iPollCount >= ((m_iRequiredPollCount > 0) ? m_iRequiredPollCount : g_nRequiredPolls))
{
+ DbgPrintf(7, _T("Interface::StatusPoll(%d,%s): status changed from %d to %d"), m_dwId, m_szName, m_iStatus, newStatus);
m_iStatus = newStatus;
m_iPendingStatus = -1; // Invalidate pending status
SendPollerMsg(dwRqId, " Interface status changed to %s\r\n", g_szStatusTextSmall[m_iStatus]);
Modified: trunk/src/server/core/node.cpp
===================================================================
--- trunk/src/server/core/node.cpp 2008-08-19 14:49:56 UTC (rev 3413)
+++ trunk/src/server/core/node.cpp 2008-08-19 15:46:06 UTC (rev 3414)
@@ -839,6 +839,7 @@
// Poll interfaces and services
SetPollerInfo(nPoller, "child poll");
+ DbgPrintf(7, "StatusPoll(%s): starting child object poll", m_szName);
pCluster = GetMyCluster();
pTransport = CreateSNMPTransport();
for(i = 0; i < dwPollListSize; i++)
@@ -846,11 +847,13 @@
switch(ppPollList[i]->Type())
{
case OBJECT_INTERFACE:
+ DbgPrintf(7, "StatusPoll(%s): polling interface %d [%s]", m_szName, ppPollList[i]->Id(), ppPollList[i]->Name());
((Interface *)ppPollList[i])->StatusPoll(pSession, dwRqId, pQueue,
(pCluster != NULL) ? pCluster->IsSyncAddr(((Interface *)ppPollList[i])->IpAddr()) : FALSE,
pTransport);
break;
case OBJECT_NETWORKSERVICE:
+ DbgPrintf(7, "StatusPoll(%s): polling network service %d [%s]", m_szName, ppPollList[i]->Id(), ppPollList[i]->Name());
((NetworkService *)ppPollList[i])->StatusPoll(pSession, dwRqId,
(Node *)pPollerNode, pQueue);
break;
@@ -861,6 +864,7 @@
}
delete pTransport;
safe_free(ppPollList);
+ DbgPrintf(7, "StatusPoll(%s): finished child object poll", m_szName);
// Check if entire node is down
LockChildList(FALSE);
Received on Tue Aug 19 2008 - 18:46:07 EEST
This archive was generated by hypermail 2.2.0 : Tue Aug 19 2008 - 18:46:03 EEST