Skip to content

Development

177 Topics 594 Posts

NetXMS development discussion.

  • Agent exits with segmentation fault on FreeBSD

    Locked
    3
    0 Votes
    3 Posts
    43k Views
    N
    Hi I'm running FreeBSD 9.0 amd64, and I'm facing the same problem. I have compiled netxms with clang and gcc, and get "BUS error, segmentation fault" Here is the gdb stacktrace with a nxagentd compiled with gcc root@shadowland /usr/local/netxms/bin# gdb nxagentd nxagentd.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB.  Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Core was generated by `nxagentd'. Program terminated with signal 10, Bus error. Reading symbols from /usr/local/netxms/lib/libnetxms.so.1...done. Loaded symbols for /usr/local/netxms/lib/libnetxms.so.1 Reading symbols from /usr/local/netxms/lib/libnxdb.so.1...done. Loaded symbols for /usr/local/netxms/lib/libnxdb.so.1 Reading symbols from /usr/local/netxms/lib/libnxtre.so.5...done. Loaded symbols for /usr/local/netxms/lib/libnxtre.so.5 Reading symbols from /lib/libkvm.so.5...done. Loaded symbols for /lib/libkvm.so.5 Reading symbols from /usr/local/lib/libexpat.so.6...done. Loaded symbols for /usr/local/lib/libexpat.so.6 Reading symbols from /lib/libz.so.6...done. Loaded symbols for /lib/libz.so.6 Reading symbols from /lib/libreadline.so.8...done. Loaded symbols for /lib/libreadline.so.8 Reading symbols from /lib/libncurses.so.8...done. Loaded symbols for /lib/libncurses.so.8 Reading symbols from /lib/libcrypto.so.6...done. Loaded symbols for /lib/libcrypto.so.6 Reading symbols from /usr/local/lib/libiconv.so.3...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/local/netxms/lib/libnsm_freebsd.so...done. Loaded symbols for /usr/local/netxms/lib/libnsm_freebsd.so Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0  0x0000000800ea5e08 in _kvm_nlist () from /lib/libkvm.so.5 [New Thread 80385cc00 (LWP 101315/nxagentd)] [New Thread 80385c800 (LWP 101314/nxagentd)] [New Thread 80385c400 (LWP 101313/nxagentd)] [New Thread 803009000 (LWP 101312/nxagentd)] [New Thread 803008c00 (LWP 101311/nxagentd)] [New Thread 803008800 (LWP 101310/nxagentd)] [New Thread 803008400 (LWP 101309/nxagentd)] [New Thread 803007400 (LWP 100449/nxagentd)] (gdb) bt #0  0x0000000800ea5e08 in _kvm_nlist () from /lib/libkvm.so.5 #1  0x0000000802c9a6d3 in H_NetIfInfoFromKVM (pszParam=Variable "pszParam" is not available. ) at net.cpp:589 #2  0x00000000004085df in GetParameterValue (dwSessionId=0, pszParam=0x7fffff6f8d90 "Net.Interface.BytesOut(*)",     pszValue=0x7fffff6f8c90 "1") at getparam.cpp:515 #3  0x000000000040d22e in CommSession::getParameter (this=0x803823080, pRequest=Variable "pRequest" is not available. ) at session.cpp:653 #4  0x000000000040da44 in CommSession::processingThread (this=0x803823080) at session.cpp:441 #5  0x000000000040dab9 in CommSession::processingThreadStarter (pArg=Variable "pArg" is not available. ) at session.cpp:83 #6  0x0000000802736274 in pthread_getprio () from /lib/libthr.so.3 #7  0x0000000000000000 in ?? () Cannot access memory at address 0x7fffff6f9000 Hope that it will help you Nicolas
  • About auto add the interface dci source code

    Locked
    3
    0 Votes
    3 Posts
    43k Views
    X
    Hi   Thanks for your detail answer and suggestion!  Best wish!
  • About the Event

    Locked
    3
    0 Votes
    3 Posts
    40k Views
    X
    Thanks! It help a lot
  • Management Console GTK Source

    Locked
    4
    0 Votes
    4 Posts
    58k Views
    V
    Hi! There is an error in URL. Correct URL is https://svn.netxms.org/public/netxms/trunk/src/java/netxms-eclipse. Best regards, Victor
  • delta calculation , Net.Interface.BytesIn(*)

    Locked
    3
    0 Votes
    3 Posts
    41k Views
    M
    thank you,I've tried fetching the last value in database using getDciDataRow,and it worked fine
  • About the "System.Memory.Virtual.Total" problem

    Locked windows
    1
    0 Votes
    1 Posts
    25k Views
    X
    Hi,     I want to get the total Virtual Memory information in window(windows 7 and windows 2000). But I found that the value of it is bigger than that I see in the windows system.     The "Virtual Memory" in Netxms is the "pagefile.sys" File's size add the physical memory size.     In usual,the virtual memory in system is equal to the  "pagefile.sys" size. But,Why the "Virtual Memory" in Netxms include the physical memory?     I see the code of H_MemoryInfo. The "Virtual Memory" is get by the MEMORYSTATUSEX struct's ullTotalPageFile parameter. Is it a bug? Thanks
  • About the repeat Node object problem

    Locked
    5
    2
    0 Votes
    5 Posts
    55k Views
    S
    i'm confirm this problem. Tomorrow i can giving more information. udp. my reply
  • the way of how DiskQueue in NetXMS worked out

    Locked
    2
    0 Votes
    2 Posts
    34k Views
    X
    hi: I see the code to get the "System.IO.DiskQueue": In linux,it get the data from /proc/diskstats and calculate it. But the finally value is far different from the value  that I get with the “iostat” command In windows,it get the finally value by directly read the data (may be with existing file or api ,) I get the finally in picture below! in all, the "System.IO.DiskQueue" in Netxms 1.1.6 is different from the  "DiskQueue" in windows and linux, It  may be some "concept" discrimination. I want to know, the indicator value of "System.IO.DiskQueue"(It mean, in which number range represent the I/O is normal,in wihch number range represent unnormal ) Thanks! diskqueue.png
  • How can the console display the interfaces name in chinese

    Locked
    3
    1
    0 Votes
    3 Posts
    38k Views
    1
    Thanks you
  • create DCI with Java API

    Locked
    5
    0 Votes
    5 Posts
    45k Views
    M
    Thank you very much!
  • Android development contribution

    Locked
    4
    0 Votes
    4 Posts
    47k Views
    V
    Hi! Graphs looks great! I can imagine a lot of things to enhance (first thing that comes to my mind is to implement scrollable/zoomable graphs, which GraphView supports), but I like the direction. I'm not an Android development guru either, so we are in same position here. For now, I have committed your changes into subversion, and publish new console on a web site (as an 1.1.9 version). Please send me your desired login name for subversion so you be able to commit changes directly. Best regards, Victor
  • usage of setting alarm's message and key

    Locked
    2
    0 Votes
    2 Posts
    26k Views
    V
    Hi! It's various macros. They are described in NetXMS user manual, section "Macros used in event processing". Best regards, Victor
  • Java API

    Locked
    5
    0 Votes
    5 Posts
    22k Views
    D
    Thank you vm!
  • How to configure action in event process policy rule with java api

    Locked
    3
    0 Votes
    3 Posts
    18k Views
    M
    Thank you!
  • About the discover poll

    Locked
    4
    0 Votes
    4 Posts
    18k Views
    V
    Yes, that's correct. Best regards, Victor
  • topology map in java console

    Locked
    5
    1
    0 Votes
    5 Posts
    18k Views
    V
    Currently there no such view in Java console. I'll add it to my to-do list. Best regards, Victor
  • type and range of Threshold "sample" and "value"

    Locked
    3
    1
    0 Votes
    3 Posts
    18k Views
    M
    Thank you very much!
  • meaning of some attributes in CLASS Threshold.java

    Locked
    3
    0 Votes
    3 Posts
    16k Views
    M
    Thank you very much! ;D
  • about the “System.CPU.Usage.Guest”

    Locked
    1
    0 Votes
    1 Posts
    14k Views
    X
    Hi:   when I use the nxget to get the parameter “System.CPU.Usage.Guest” ,it‘s value always be “0.000000” . It’s value is always be zero,It is something wrong on it,How can I fix it in the source code? Thanks!
  • procedure to use event in netxms with java api??

    Locked
    3
    0 Votes
    3 Posts
    18k Views
    M
    oh sorry,it seems to be a problem of tomcat. When I call the method in  web page ,it is likely to occur;but if call the method in a simple test java class(simply call the method and print data returned) it won't happen.