Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gyouja

#1
Я для этого уже давно написал и использую такой патчик:


--- netxms-1.2.10/src/agent/subagents/linux/linux.cpp 2013-11-15 18:04:23.000000000 +0400
+++ netxms-1.2.10-r1/src/agent/subagents/linux/linux.cpp 2014-01-09 17:51:00.000000000 +0400
@@ -180,9 +180,9 @@
{ _T("Net.Interface.AdminStatus(*)"), H_NetIfInfoFromIOCTL, (TCHAR *)IF_INFO_ADMIN_STATUS,
DCI_DT_INT, DCIDESC_NET_INTERFACE_ADMINSTATUS },
{ _T("Net.Interface.BytesIn(*)"),     H_NetIfInfoFromProc, (TCHAR *)IF_INFO_BYTES_IN,
- DCI_DT_UINT, DCIDESC_NET_INTERFACE_BYTESIN },
+ DCI_DT_UINT64, DCIDESC_NET_INTERFACE_BYTESIN },
{ _T("Net.Interface.BytesOut(*)"),    H_NetIfInfoFromProc, (TCHAR *)IF_INFO_BYTES_OUT,
- DCI_DT_UINT, DCIDESC_NET_INTERFACE_BYTESOUT },
+ DCI_DT_UINT64, DCIDESC_NET_INTERFACE_BYTESOUT },
{ _T("Net.Interface.Description(*)"), H_NetIfInfoFromIOCTL, (TCHAR *)IF_INFO_DESCRIPTION,
DCI_DT_STRING, DCIDESC_NET_INTERFACE_DESCRIPTION },
{ _T("Net.Interface.InErrors(*)"),    H_NetIfInfoFromProc, (TCHAR *)IF_INFO_IN_ERRORS,
diff -ur netxms-1.2.10/src/agent/subagents/linux/net.cpp netxms-1.2.10-r1/src/agent/subagents/linux/net.cpp
--- netxms-1.2.10/src/agent/subagents/linux/net.cpp 2013-11-29 17:56:24.000000000 +0400
+++ netxms-1.2.10-r1/src/agent/subagents/linux/net.cpp 2014-01-09 17:53:39.000000000 +0400
@@ -526,15 +526,15 @@
    int i;
    char *eptr, szBuffer[256];
    const char *pszWord;
-   DWORD dwValue;
+   QWORD qwValue;
    LONG nRet = SYSINFO_RC_ERROR;

    for(i = 0, pszWord = pszLine; i <= nPos; i++)
       pszWord = ExtractWordA(pszWord, szBuffer);
-   dwValue = strtoul(szBuffer, &eptr, 0);
+   qwValue = (QWORD) strtoull(szBuffer, &eptr, 0);
    if (*eptr == 0)
    {
-      ret_uint(pValue, dwValue);
+      ret_uint64(pValue, qwValue);
       nRet = SYSINFO_RC_SUCCESS;
    }
    return nRet;
#2
Общие вопросы / Re: nxmc 2.0.2
February 16, 2016, 05:28:36 PM
Никаких новостей?
#3
Use $$2
#4
Общие вопросы / Re: nxmc 2.0.2
February 09, 2016, 01:46:47 PM
$ /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    1.8.0_45, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
#5
Общие вопросы / Re: nxmc 2.0.2
February 09, 2016, 01:30:21 PM
Удалось запустить из консоли
/Applications/NetXMS\ Console.app/Contents/MacOS/nxmc
заменив в Info.plist $APP_PACKAGE на /Applications/NetXMS Console.app
Но это не решение проблемы :)
#6
Общие вопросы / Re: nxmc 2.0.2
February 09, 2016, 12:43:43 PM
sha1 совпадает
#7
Общие вопросы / Re: nxmc 2.0.2
February 09, 2016, 12:23:41 PM
#8
Общие вопросы / nxmc 2.0.2
February 09, 2016, 12:13:06 PM
После установки 2.0.2. В чем проблема?
#9
Set your NetXMS server as "Proxy node" in Properties of that DCI.
#10
General Support / Re: Linux Memory Monitoring
June 23, 2015, 01:17:09 PM
Quote from: pace on June 11, 2015, 01:56:29 AM
Still having this problem.  Any solutions out there?
Add following line to nxagentd.conf and create appropriate DCI for FreeMemPerc:
ExternalParameter = FreeMemPerc:awk '$$1=="MemTotal:" {total=$$2} $$1=="MemFree:" {free=$$2} $$1=="Cached:" {cached=$$2} END {printf("%.0f\n",(free+cached)/total*100)}' /proc/meminfo