Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

C

code4pay

@code4pay
Unfollow Follow
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • `pthread_cond_reltimedwait_np' was not declared building agent on Solaris
    C code4pay
    Support

    Thanks again Victor the work around was a success.  I have attached the pthread.h.
    It seems that it is only Solaris 8, Solaris 9 built ok with out the hack.

    I had another issue with expat being too old I received this error in case some on else has the issue
     “message.cpp:297: `XML_STATUS_ERROR' undeclared (first use this function)”  Upgraded expat and all went ok.
     
    Thanks Again.


    pthread.h


  • `pthread_cond_reltimedwait_np' was not declared building agent on Solaris
    C code4pay
    Support

    Hi Trying to build the agent on Sparc Solaris 5.8, using gcc
    using
    ./configure --prefix=/opt/netxms  --with-agent --disable-encryption --disable-iconv
    make
    and I get the error

    DISABLE_ICONV -D_THREAD_SAFE -DPREFIX=\"/opt/netxms\" -DPREFIXW=L\"/opt/netxms\" -DDATADIR=\"/opt/netxms/share/netxms\" -DLIBDIR=\"/opt/netxms/lib\" -g -O2 -fno-rtti -fno-exceptions -fno-const-strings -Wno-deprecated -MT base64.lo -MD -MP -MF .deps/base64.Tpo -c base64.cpp  -fPIC -DPIC -o .libs/base64.o
    In file included from ../../include/nms_util.h:40,
                    from libnetxms.h:28,
                    from base64.cpp:44:
    ../../include/nms_threads.h: In function `BOOL ConditionWait(netxms_condition_t*, DWORD)':
    ../../include/nms_threads.h:849: error: `pthread_cond_reltimedwait_np' was not declared in this scope
    make[3]: *** [base64.lo] Error 1

    uname -a
    SunOS cscsydhnms56 5.8 Generic_117350-59 sun4u sparc SUNW,UltraAX-i2 Solaris
     
    gcc -v
    Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.6/specs
    Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
    Thread model: posix
    gcc version 3.4.6

    config.log attached (had to gzip it)

    Any Ideas?

    thanks


    config.log.gz


  • Agent installed on Damn small Linux has no supported parameters
    C code4pay
    Support

    Victor you are a champion!  Thanks very much.


  • Agent installed on Damn small Linux has no supported parameters
    C code4pay
    Support

    More info

    I installed on another dsl client  same thing happened.

    the debug is now showing

    Configuration file OK
    [10-Sep-2009 09:57:25] Debug: Log file opened
    [10-Sep-2009 09:57:25] Debug: Subagent API initialized
    [10-Sep-2009 09:57:26] Subagent "/opt/netxms/lib/libnsm_linux.so" loaded successfully
    [10-Sep-2009 09:57:26] Subagent "Linux" already loaded from module "/opt/netxms/lib/libnsm_linux.so"
    [10-Sep-2009 09:57:27] Debug: Trying to bind on 0.0.0.0:4700
    [10-Sep-2009 09:57:27] Listening on socket 0.0.0.0:4700
    [10-Sep-2009 09:57:28] NetXMS Agent started
    Agent running. Press Ctrl+C to shutdown.
    [10-Sep-2009 09:57:50] Debug: Incoming connection from 20.250.128.190
    [10-Sep-2009 09:57:50] Debug: Connection from 20.250.128.190 accepted
    [10-Sep-2009 09:57:50] Debug: {0} Received control message CMD_GET_NXCP_CAPS
    [10-Sep-2009 09:57:50] Debug: {0} Sending message CMD_NXCP_CAPS (size 16)
    [10-Sep-2009 09:57:50] Debug: {0} Received message CMD_KEEPALIVE
    [10-Sep-2009 09:57:50] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
    [10-Sep-2009 09:57:50] Debug: {0} Session with 20.250.128.190 closed
    [10-Sep-2009 09:57:51] Debug: Incoming connection from 20.250.128.190
    [10-Sep-2009 09:57:51] Debug: Connection from 20.250.128.190 accepted
    [10-Sep-2009 09:57:51] Debug: {0} Received control message CMD_GET_NXCP_CAPS
    [10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_NXCP_CAPS (size 16)
    [10-Sep-2009 09:57:51] Debug: {0} Received message CMD_KEEPALIVE
    [10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
    [10-Sep-2009 09:57:51] Debug: {0} Received message CMD_ENABLE_AGENT_TRAPS
    [10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
    [10-Sep-2009 09:57:51] Debug: {0} Received message CMD_GET_PARAMETER
    [10-Sep-2009 09:57:51] Debug: {0} Requesting parameter ""
    [10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
    [10-Sep-2009 09:58:13] Debug: Incoming connection from 20.250.128.190

    note I manually added the linux subagent incase that was the issue.

    Notice the Requesting Parameter is empty ?


  • Agent installed on Damn small Linux has no supported parameters
    C code4pay
    Support

    Some further info I confirmed  that libnsm_linux.so was available and had all its required libs.

    ldd libnsm_linux.so
            libpthread.so.0 => /lib/libpthread.so.0 (0x4001f000)
            libexpat.so.0 => /usr/lib/./libexpat.so.0 (0x4006f000)
            libdl.so.2 => /lib/libdl.so.2 (0x4008d000)
            libcrypto.so.0 => /usr/lib/./libcrypto.so.0 (0x40090000)
            libstdc++.so.5 => /usr/lib/./libstdc++.so.5 (0x401c9000)
            libm.so.6 => /lib/libm.so.6 (0x40281000)
            libc.so.6 => /lib/libc.so.6 (0x402a3000)
            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x403d1000)
            /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


  • Agent installed on Damn small Linux has no supported parameters
    C code4pay
    Support

    Did a forced Poll,
    received this message
    [10-Sep-2009 07:16:19] Sending poll request to server...
    [10-Sep-2009 07:16:19] Poll request accepted
    [10-Sep-2009 07:16:19] Starting configuration poll for node dsltest.aust.csc.com
    [10-Sep-2009 07:16:19] Checking node's capabilities...
    [10-Sep-2009 07:16:19]    Checking NetXMS agent...
    [10-Sep-2009 07:16:19] i  NetXMS native agent is active
    [10-Sep-2009 07:16:19]    Checking SNMP...
    [10-Sep-2009 07:16:20]    SNMP agent is active (version 2c)
    [10-Sep-2009 07:16:20]    System description changed to Linux dsltest 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686
    [10-Sep-2009 07:16:20] Capability check finished
    Checking interface configuration...
    [10-Sep-2009 07:16:21] Interface configuration check finished
    [10-Sep-2009 07:16:21] Checking node name
    [10-Sep-2009 07:16:21] Node name is OK
    [10-Sep-2009 07:16:21] Finished configuration poll for node dsltest.aust.csc.com
    Node configuration was changed after poll
    [10-Sep-2009 07:16:21] Poll completed successfully

    If I now right click and go tools, info Arp Cache (agent) I get "Error getting data from node: Parameter is not supported by agent."

    I get the same message if I go tools, info , agent, Supported parameters.

    Thank you for your help.


  • Agent installed on Damn small Linux has no supported parameters
    C code4pay
    Support

    We are using some DSL based appliances that run on compact flash. I managed to get the agents nxagent installed ok  but when I query any agent param it reports that it does not support this parameter.  I can access the device from the server and it says it is active and I can view the agent config via the console.  However the client information shows Agent active but no agent version info.  I have run with the -D flag it shows the server accessing the agent but no other info.    I compiled th agent on a slackware box same kernel and GLIBC version and it works ok.    DSL is pretty cut down version of linux could there be a component missing?   

    Thanks

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups