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

  1. Home
  2. Support
  3. Cannot loads platform subagent

Cannot loads platform subagent

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 26.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    I
    ikyb
    wrote on last edited by
    #1

    Hello, I try to compile 0.2.17 released on Freebsd 7,6.2

    host# ./configure --with-server --with-mysql --with-agent --prefix=/usr/local/netxms
    host# make
    host# make install
    host# /usr/local/netxms/bin/nxdbmgr init /home/user/netxms/sql/dbinit_mysql.sql 

    Compilation of source code and install is ok, after i start service:
    host# /usr/local/bin/nxagentd -D -d
    ..........
    [14-Jun-2007 16:20:41] Log file opened
    [14-Jun-2007 16:20:41] Debug: Log file opened
    [14-Jun-2007 16:20:41] Debug: Subagent API initialized
    [14-Jun-2007 16:20:43] NetXMS Agent started
    ............

    host#  /usr/local/netxms/bin/netxmsd
    ..............
    [14-Jun-2007 16:36:48] Log file opened
    [14-Jun-2007 16:36:48] Cannot loads platform subagent "/usr/local/netxms/lib/libnsm_freebsd.so": Subagent doesn't provide any usable parameters
    [14-Jun-2007 16:36:48] Database driver "/usr/local/netxms/lib/libnxddr_mysql.so" loaded and initialized successfully
    [14-Jun-2007 16:36:48] NetXMS server cannot create node object for itself - probably because platform subagent cannot be loaded (check above error messages, if any)
    ...............

    In what there can be a problem?

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      Hello.

      Can you show me please output of:

      1. ldd /usr/local/netxms/lib/libnsm_freebsd.so
      2. file /usr/local/netxms/lib/libnsm_freebsd.so
      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        Please try to run in that way:

        LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/netxms/lib /usr/local/netxms/bin/netxmsd standalone

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Hello!

          It's a bug in FreeBSD subagent. Try to do the following: add the following lines to the end of src/agent/subagents/freebsd/freebsd.cpp:

          extern "C" BOOL __NxSubAgentGetIfList(NETXMS_VALUES_LIST *pValue)
          {
            return H_NetIfList("Net.InterfaceList", NULL, pValue) == SYSINFO_RC_SUCCESS;
          }
          extern "C" BOOL __NxSubAgentGetArpCache(NETXMS_VALUES_LIST *pValue)
          {
            return H_NetArpCache("Net.ArpCache", NULL, pValue) == SYSINFO_RC_SUCCESS;
          }

          (it's a missing entry points caused message Cannot loads platform subagent "/usr/local/netxms/lib/libnsm_freebsd.so": Subagent doesn't provide any usable parameters) and recompile the agent. This should help.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • I
            I
            ikyb
            wrote on last edited by
            #5

            host# ldd /usr/local/netxms/lib/libnsm_freebsd.so
            /usr/local/netxms/lib/libnsm_freebsd.so:
                    libkvm.so.4 => /lib/libkvm.so.4 (0x28187000)
                    libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28300000)
                    libmysqlclient.so.15 => /usr/local/lib/mysql/libmysqlclient.so.15 (0x2818f000)
                    libz.so.4 => /lib/libz.so.4 (0x281ed000)
                    libreadline.so.6 => /lib/libreadline.so.6 (0x283ed000)
                    libncurses.so.6 => /lib/libncurses.so.6 (0x2841f000)
                    libcrypto.so.5 => /lib/libcrypto.so.5 (0x2846b000)
                    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x285bf000)
                    libm.so.5 => /lib/libm.so.5 (0x286a8000)
                    libc.so.7 => /lib/libc.so.7 (0x2807f000)
                    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x286bd000)
                    libcrypt.so.4 => /lib/libcrypt.so.4 (0x286c8000)

            host# file /usr/local/netxms/lib/libnsm_freebsd.so
            /usr/local/netxms/lib/libnsm_freebsd.so: symbolic link to `libnsm_freebsd.so.0'

            host# ls -l /usr/local/netxms/lib/libnsm_freebsd.so*
            lrwxr-xr-x  1 root  wheel     19 14 june 17:46 /usr/local/netxms/lib/libnsm_freebsd.so -> libnsm_freebsd.so.0
            -rwxr-xr-x  1 root  wheel  80105 14 june 17:46 /usr/local/netxms/lib/libnsm_freebsd.so.0

            1 Reply Last reply
            0
            • I
              I
              ikyb
              wrote on last edited by
              #6

              It is more than thanks for the help, all was started 🙂

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • 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