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. NetXMS Agent on Odroid-HC2, level zero

NetXMS Agent on Odroid-HC2, level zero

Scheduled Pinned Locked Moved Support
15 Posts 3 Posters 14.0k 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.
  • F
    F
    Filipp Sudanov
    wrote on last edited by
    #2

    The first thing to try is generic ARM agent that's available among downloads:

    https://www.netxms.org/download/releases/3.1/nxagent-3.1.343-linux-arm.tar.gz

    Extract it to the root of the filesystem - the files will get to /opt/netxms - and try running
    /opt/netxms/bin/nxagentd -D 6

    If we are lucky, it will start - and will blame that there is no config file - you could create one in /etc/nxagentd.conf. Or it will not start, then you'd have to compile it from sources.
    Please report the results.

    1 Reply Last reply
    0
    • A
      A
      aeonaura
      wrote on last edited by
      #3

      Steps so far:

      wget https://www.netxms.org/download/releases/3.1/nxagent-3.1.343-linux-arm.tar.gz

      No sure how and where to extract this. Looking up the commands. "tar xvzf file.tar.gz -C /path/to/somedirectory"  but not sure what to enter

      tar xvzf nxagent-3.1.343-linux-arm.tar.gz

      is this correct?

      1 Reply Last reply
      0
      • A
        A
        aeonaura
        wrote on last edited by
        #4

        root@odroid:~# opt/netxms/bin/nx
        nxagentd    nxapush      nxdevcfg    nxgenguid    nxmibc      nxsnmpset
        nxappget    nxcsum      nxencpasswd  nxlptest    nxsnmpget    nxsnmpwalk
        root@odroid:~# opt/netxms/bin/nx
        nxagentd    nxapush      nxdevcfg    nxgenguid    nxmibc      nxsnmpset
        nxappget    nxcsum      nxencpasswd  nxlptest    nxsnmpget    nxsnmpwalk
        root@odroid:~# opt/netxms/bin/nxa
        nxagentd  nxappget  nxapush
        root@odroid:~# opt/netxms/bin/nxagentd -D 6
        opt/netxms/bin/nxagentd: error while loading shared libraries: libappagent.so.31: cannot open shared object file: No such file or directory
        root@odroid:~#

        error I'm getting

        Imagine this is the missing config file?

        BTW once this is working will write all the steps to help others in OP

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #5

          config file absence is not an issue yet - it's not able to find a .so library.

          Try to create a file /etc/ld.so.conf.d/netxms.conf with the following contents:

          /opt/netxms/lib/
          

          Then run

          ldconfig
          

          This should add /opt/netxms/lib/ to the list of places where system searches for shared libraries.

          Then attempt to launch nxagentd -D 6 should give something like this:

          Configuration loading error: Could not process "/etc/nxagentd.conf"!
          Error loading configuration from "/etc/nxagentd.conf" section CORE
          Error loading configuration file
          

          The next step is to create agent config file /etc/nxagentd.conf. The minimal config could be like this (replace the address in MasterServers to actual address of your NetXMS server):

          LogFile = /var/log/nxagentd
          DebugLevel = 2
          MasterServers = 192.168.1.2
          
          1 Reply Last reply
          0
          • A
            A
            aeonaura
            wrote on last edited by
            #6

            Once I get home I'll try this out! Thanks so much.

            1 Reply Last reply
            0
            • A
              A
              aeonaura
              wrote on last edited by
              #7

              What I did:
              touch /etc/ld.so.conf.d/netxms.conf
              nano /etc/ld.so.conf.d/netxms.conf (added in /opt/netxms/lib/)
              ldconfig

              --here is the results--

              /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 is not an ELF file - it has the wrong magic bytes at the start.

              /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3.5.3.dpkg-tmp is not an ELF file - it has the wrong magic bytes at the start.

              /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3.5.3 is not an ELF file - it has the wrong magic bytes at the start.

              /sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 is not a symbolic link

              root@odroid:~/opt/netxms/lib#

              What did I miss?

              1 Reply Last reply
              0
              • F
                F
                Filipp Sudanov
                wrote on last edited by
                #8

                ldconfig says that there's something wrong with files in /usr/lib/arm-linux-gnueabihf/ - but that's not related to netxms.
                What about nxagentd - what happens if you try to start it?

                1 Reply Last reply
                0
                • A
                  A
                  aeonaura
                  wrote on last edited by
                  #9

                  root@odroid:~# /opt/netxms/bin/nxagentd -D 6
                  -bash: /opt/netxms/bin/nxagentd: No such file or directory

                  then tried this

                  root@odroid:~# opt/netxms/bin/nxagentd -D 6
                  opt/netxms/bin/nxagentd: error while loading shared libraries: libappagent.so.31            : cannot open shared object file: No such file or directory
                  root@odroid:~#

                  see this in the folder
                  root@odroid:~# opt/netxms/bin/nx
                  nxagentd    nxapush      nxdevcfg    nxgenguid    nxmibc      nxsnmpset
                  nxappget    nxcsum      nxencpasswd  nxlptest    nxsnmpget    nxsnmpwalk

                  when Nano into: /etc/ld.so.conf.d/netxms.conf

                    **GNU nano 2.9.3 /etc/ld.so.conf.d/netxms.conf**

                  /opt/netxms/lib/

                  1 Reply Last reply
                  0
                  • B
                    B
                    Borgso
                    wrote on last edited by
                    #10

                    You have the netxms dir in wrong path, move it from /root to /opt

                    mv /root/opt/netxms /opt/
                    
                    1 Reply Last reply
                    0
                    • A
                      A
                      aeonaura
                      wrote on last edited by
                      #11

                      Thanks for pointing that out Borgso!

                      What do I need to change with this code. I believe this was my problem.

                      tar xvzf nxagent-3.1.343-linux-arm.tar.gz
                      

                      Issue I see now
                      root@odroid:~# /opt/netxms/bin/nxagentd -D 6
                      /opt/netxms/bin/nxagentd: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /opt/netxms/bin/nxagentd)
                      /opt/netxms/bin/nxagentd: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /opt/netxms/lib/libnetxms.so.31)
                      root@odroid:~#

                      Added

                      touch /etc/ld.so.conf.d/netxms.conf
                      nano /etc/ld.so.conf.d/netxms.conf
                      entered:/opt/netxms/lib/
                      
                      1 Reply Last reply
                      0
                      • A
                        A
                        aeonaura
                        wrote on last edited by
                        #12

                        Really close! Any help over the weekend?

                        1 Reply Last reply
                        0
                        • B
                          B
                          Borgso
                          wrote on last edited by
                          #13

                          Are you using Ubuntu or other apt distro?

                          apt-get update
                          apt-get install libc6

                          1 Reply Last reply
                          0
                          • A
                            A
                            aeonaura
                            wrote on last edited by
                            #14

                            Ubuntu

                            Just a moment...

                            favicon

                            (wiki.odroid.com)

                            Was using a minimal OS, maybe need to try the full one

                            1 Reply Last reply
                            0
                            • B
                              B
                              Borgso
                              wrote on last edited by
                              #15

                              Did you try install libc6?

                              Should work with minimal, just need to install the missing library

                              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