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. Raspberry Pi 3 - Compile Agent

Raspberry Pi 3 - Compile Agent

Scheduled Pinned Locked Moved Support
9 Posts 4 Posters 83.6k 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.
  • T
    T
    Tursiops
    wrote on last edited by
    #1

    Hi,

    I'm trying to compile the NetXMS agent from source on a Raspberry Pi 3 (wouldn't mind just using a package instead 🙂 ).
    The following command line runs through ok:

    sudo ./configure --with-agent --with-snmp --with-client --with-client-proxy
    

    After that I run

    make
    make install
    

    So far so good.

    But when I want to actually run the agent (be it via nxagentd or sudo nxagentd, makes no difference), I receive this:

    nxagentd: error while loading shared libraries: libappagent.so.2: cannot open shared object file: No such file or directory
    

    So I ran ls -l /usr/local/lib/libappagent.* and got this:

    -rwxr-xr-x 1 root staff  1144 May  3 23:55 libappagent.la
    lrwxrwxrwx 1 root staff    20 May  3 23:55 libappagent.so -> libappagent.so.2.0.0
    lrwxrwxrwx 1 root staff    20 May  3 23:55 libappagent.so.2 -> libappagent.so.2.0.0
    -rwxr-xr-x 1 root staff 45432 May  3 23:55 libappagent.so.2.0.0
    

    To me that looks ok. Not sure why nxagentd has a problem with this?
    Any suggestions?

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Here are compiled armhf packages.


      netxms-agent_20160504023754-1_armhf.deb

      netxms-base_20160504023754-1_armhf.deb

      netxms-client_20160504023754-1_armhf.deb

      netxms-dbdrv-sqlite3_20160504023754-1_armhf.deb

      1 Reply Last reply
      0
      • T
        T
        Tursiops
        wrote on last edited by
        #3

        That worked fine, thanks for the packages.
        Now I just don't know what I did wrong with compiling from source? 🙂

        1 Reply Last reply
        0
        • T
          T
          Tursiops
          wrote on last edited by
          #4

          Looks like the package didn't come with the SNMP proxy (or I've broken something else), so I guess I'm back to my issue with not being able to get the agent to run after compiling from source.

          1 Reply Last reply
          0
          • T
            T
            tomaskir
            wrote on last edited by
            #5

            It works fine for me from those packages

            root@raspberrypi:/etc# nxagentd -f -D5
            [10-May-2016 13:39:12.363] [INFO ] Additional configs was loaded from /etc/nxagentd.conf.d
            [10-May-2016 13:39:12.363] [INFO ] Debug level set to 5
            ...
            [10-May-2016 13:39:12.468] [DEBUG] Thread pool SNMPPROXY initialized (min=2, max=128)
            ...
            [10-May-2016 13:39:14.589] [DEBUG] SNMP Trap sender thread started
            [10-May-2016 13:39:14.592] [DEBUG] Data collection scheduler thread started
            [10-May-2016 13:39:14.594] [DEBUG] Data sender thread started
            [10-May-2016 13:39:14.594] [DEBUG] Database writer thread started
            [10-May-2016 13:39:14.594] [DEBUG] Data reconciliation thread started
            ...
            [10-May-2016 13:39:14.598] [DEBUG] SNMPTrapReceiver: listening on 0.0.0.0:162
            [10-May-2016 13:39:15.599] [INFO ] NetXMS Agent started
            Agent running. Press Ctrl+C to shutdown.
            ...
            

            What is not working for you?

            1 Reply Last reply
            0
            • N
              N
              nicola
              wrote on last edited by
              #6

              Do you by chanche also have the server package?

              Thank you for these, in the meanwhile 🙂

              Nicola

              1 Reply Last reply
              0
              • T
                T
                tomaskir
                wrote on last edited by
                #7

                I can give you RPi server packages, but I really do NOT recommend running netxmsd on RPi.

                Usually when running the server on RPi, you would use sqlite DB (since you will not have a full featured DB server available).
                The NetXMS team has stated multiple times that they want to deprecate sqlite, and sqlite has quite a few known bugs.

                Also, unless you have a very good SDHC Card (class 10+ with read/write of 40+ MBps), it will be painfully slow.

                1 Reply Last reply
                0
                • jdowneyJ
                  jdowneyJ
                  jdowney
                  wrote on last edited by
                  #8

                  Thanks for this post I'm running an agent as a proxy in an off-site location running 2.1-M1. Looking to upgrade to 2.2.8 has anyone else already done this and can point me in the right direction.

                  Thanks

                  1 Reply Last reply
                  0
                  • T
                    T
                    tomaskir
                    wrote on last edited by
                    #9

                    There is latest up-to-date Raspbian packages in the official NetXMS APT repo.

                    (This includes 2.2.8 for Raspbian Stretch, and armhf Ubuntu 18 pacakges)

                    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