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. Installing agent on Raspbian

Installing agent on Raspbian

Scheduled Pinned Locked Moved Support
12 Posts 6 Posters 163.9k 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.
  • B
    B
    blairmc96
    wrote on last edited by
    #1

    I'm trying to install the agent on a Raspberry pi (see version below), and am following instructions from the Wiki.

    Link Preview Image
    Using APT Repository - NetXMS Wiki

    favicon

    (wiki.netxms.org)

    Please let me know what I am doing wrong.

    Thanks!

    pi@piaware:~ $ sudo wget http://packages.netxms.org/netxms-release_1.2_all.deb
    --2019-06-07 18:38:59--  http://packages.netxms.org/netxms-release_1.2_all.deb
    Resolving packages.netxms.org (packages.netxms.org)... 5.9.112.213
    Connecting to packages.netxms.org (packages.netxms.org)|5.9.112.213|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 6878 (6.7K) [application/octet-stream]
    Saving to: ‘netxms-release_1.2_all.deb.2’
    
    netxms-release_1.2_all.deb.2                     100%[==========================================================================================================>]   6.72K  --.-KB/s    in 0s
    
    2019-06-07 18:38:59 (30.9 MB/s) - ‘netxms-release_1.2_all.deb.2’ saved [6878/6878]
    
    pi@piaware:~ $ sudo dpkg -i netxms-release_1.2_all.deb
    (Reading database ... 42332 files and directories currently installed.)
    Preparing to unpack netxms-release_1.2_all.deb ...
    Unpacking netxms-release (1.2) over (1.2) ...
    Setting up netxms-release (1.2) ...
    pi@piaware:~ $ sudo apt-get update
    Hit:1 http://flightaware.com/mirror/raspbian/raspbian stretch InRelease
    Hit:2 http://flightaware.com/adsb/piaware/files/packages stretch InRelease
    Hit:3 http://flightaware.com/mirror/raspberrypi/debian stretch InRelease
    Hit:4 http://packages.netxms.org/debian stretch InRelease
    Reading package lists... Done
    N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://packages.netxms.org/debian stretch InRelease' doesn't support architecture 'armhf'
    pi@piaware:~ $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    pi@piaware:~ $
    
    
    1 Reply Last reply
    0
    • B
      B
      blairmc96
      wrote on last edited by
      #2

      Can I please get some help with this?

      Thanks

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

        I believe you need to change the URL in your sources file to http://packages.netxms.org/raspian (from http://packages.netxms.org/debian).

        1 Reply Last reply
        0
        • B
          B
          blairmc96
          wrote on last edited by
          #4

          @tursiops said in Installing agent on Raspbian:

          I believe you need to change the URL in your sources file to http://packages.netxms.org/raspian (from http://packages.netxms.org/debian).

          https://packages.netxms.org/raspian returns 404.

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

            Oops. That's because I misspelled it. It's raspbian, not raspian.
            You can browse through the repository: https://packages.netxms.org/

            1 Reply Last reply
            0
            • B
              B
              blairmc96
              wrote on last edited by
              #6

              Thanks for the reply.

              I'm not quite sure what to do with this knowledge... how do I proceed?  I found a deb file under the raspbian folder and I tried this below:

              What am I missing?

              pi@retropie:~ $ wget https://packages.netxms.org/raspbian/pool/jessie/main/n/netxms/netxms-agent_2.1-M2-1_armhf.deb
              --2019-07-01 04:18:57--  https://packages.netxms.org/raspbian/pool/jessie/main/n/netxms/netxms-agent_2.1-M2-1_armhf.deb
              Resolving packages.netxms.org (packages.netxms.org)... 5.9.112.213
              Connecting to packages.netxms.org (packages.netxms.org)|5.9.112.213|:443... connected.
              HTTP request sent, awaiting response... 200 OK
              Length: 196588 (192K) [application/octet-stream]
              Saving to: ‘netxms-agent_2.1-M2-1_armhf.deb’
              
              netxms-agent_2.1-M2-1_armhf.deb       100%[=======================================================================>] 191.98K   623KB/s    in 0.3s
              
              2019-07-01 04:18:58 (623 KB/s) - ‘netxms-agent_2.1-M2-1_armhf.deb’ saved [196588/196588]
              
              pi@retropie:~ $ sudo dpkg -i netxms-agent_2.1-M2-1_armhf.deb
              Selecting previously unselected package netxms-agent:armhf.
              (Reading database ... 96679 files and directories currently installed.)
              Preparing to unpack netxms-agent_2.1-M2-1_armhf.deb ...
              Unpacking netxms-agent:armhf (2.1-M2-1) ...
              dpkg: dependency problems prevent configuration of netxms-agent:armhf:
               netxms-agent:armhf depends on netxms-base (= 2.1-M2-1); however:
                Package netxms-base is not installed.
               netxms-agent:armhf depends on netxms-dbdrv-sqlite3 (= 2.1-M2-1); however:
                Package netxms-dbdrv-sqlite3 is not installed.
               netxms-agent:armhf depends on libsensors4 (>= 1:3.1.1); however:
                Package libsensors4 is not installed.
               netxms-agent:armhf depends on libssl1.0.0 (>= 1.0.0); however:
                Package libssl1.0.0 is not installed.
              
              dpkg: error processing package netxms-agent:armhf (--install):
               dependency problems - leaving unconfigured
              Processing triggers for systemd (232-25+deb9u11) ...
              Errors were encountered while processing:
               netxms-agent:armhf
              pi@retropie:~ $
              
              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #7

                Hi,

                you have to add new source for apt. Create new file named netxms.list in /etc/apt/sources.list.d/ with content like this:

                deb http://packages.netxms.org/raspbian stretch main
                

                You may also need to install GPG key with command

                wget -q -O - http://packages.netxms.org/netxms.gpg | sudo apt-key add -

                Best regards,
                Victor

                1 Reply Last reply
                0
                • B
                  B
                  blairmc96
                  wrote on last edited by
                  #8

                  Victor, thanks for the information.  This worked for me.

                  For those wanting all the info, below are all the steps I followed, however I had to comment out the other line (deb http://packages.netxms.org/debian stretch main) in netxms.list.  This file already existed, I guess due to some of the steps I followed earlier

                  Create new file named netxms.list in /etc/apt/sources.list.d/ with content like this, Comment out existing line

                  
                  deb http://packages.netxms.org/raspbian stretch main
                  #deb http://packages.netxms.org/debian stretch main
                  
                  
                  wget -q -O - http://packages.netxms.org/netxms.gpg | sudo apt-key add -
                  sudo apt-get update
                  sudo apt-get install netxms-agent
                  sudo nano /etc/nxagentd.conf
                  sudo systemctl enable nxagentd
                  

                  Edit nxagentd.conf and change MasterServers to your NetXMS server
                  The default file had 127.0.0.1/8, I had to remove the CIDR notation to get it to work

                  sudo service nxagentd restart
                  
                  1 Reply Last reply
                  0
                  • R
                    R
                    rchab
                    wrote on last edited by
                    #9

                    Just an update :

                    Point 1 :
                     

                    you have to add new source for apt in /etc/apt/sources.list.d/

                      Be carreful on version :deb http://packages.netxms.org/raspbian stretch main
                      To know raspbian realease : cat /etc/os-release

                    Point 2 :

                    wget -q -O - http://packages.netxms.org/netxms.gpg | sudo apt-key add -  => wrong
                    wget -q -O - https://packages.netxms.org/netxms.gpg | sudo apt-key add -  => Ok

                    Use httpS: instead of http:

                    1 Reply Last reply
                    0
                    • K
                      K
                      kopecvi2
                      wrote on last edited by
                      #10

                      Hello, I have a quite same issue. I tryed to compile Netxms agent for RPI5 Raspbian bookworm (PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
                      NAME="Debian GNU/Linux"
                      VERSION_ID="12"
                      VERSION="12 (bookworm)")
                      but i have some troubles with them. Would anyone be able to help me?

                      sudo systemctl status nxagentd

                      × nxagentd.service - NetXMS Agent
                          Loaded: loaded (/lib/systemd/system/nxagentd.service; enabled; preset: enabled)
                          Active: failed (Result: exit-code) since Sun 2025-11-09 14:05:47 CET; 2min 54s ago
                          Process: 1361070 ExecStart=/usr/bin/nxagentd -d (code=exited, status=127)
                              CPU: 1ms
                      
                      lis 09 14:05:47 mama-rpi systemd[1]: nxagentd.service: Scheduled restart job, restart counter is at 5.
                      lis 09 14:05:47 mama-rpi systemd[1]: Stopped nxagentd.service - NetXMS Agent.
                      lis 09 14:05:47 mama-rpi systemd[1]: nxagentd.service: Start request repeated too quickly.
                      lis 09 14:05:47 mama-rpi systemd[1]: nxagentd.service: Failed with result 'exit-code'.
                      lis 09 14:05:47 mama-rpi systemd[1]: Failed to start nxagentd.service - NetXMS Agent.
                      
                      1 Reply Last reply
                      0
                      • F
                        F
                        Filipp Sudanov
                        wrote on last edited by
                        #11

                        Pls try to run the agent in the foreground mode:

                        nxagentd -D 6

                        In this mode it should put it's log right to the terminal. Pls share the output

                        1 Reply Last reply
                        0
                        • K
                          K
                          kopecvi2
                          wrote on last edited by
                          #12

                          Hello I solve my problem thanks to one man on root.cz (it is in czech) https://forum.root.cz/index.php?topic=30974.msg429129#msg429129

                          I had compile this code for RPi5 and OPi5 with success.

                          English translation of this manual:


                          To compile on Raspberry Pi, install at least the basics for building. For the rest of the procedure, I assume you are using Debian 12.
                          Code: [Select]
                          apt install build-essential autoconf libssl-dev libpcre2-dev libmodbus-dev

                          Download the netxms source code from the website.
                          Code: [Select]
                          https://netxms.com/download/releases/5.2/netxms-5.2.7.tar.gz
                          Unzip it to /opt/netxms, for example.

                          Then run configure and make in the directory.
                          Code: [Select]
                          ./configure --with-libmodbus --with-libssh --with-snmp --with-agent --with-openssl --with-client-proxy --with-static-subagents-list=ssh
                          make
                          make install
                          ldconfig
                          For systemd, the unit file is available after compilation in /opt/netxms/netxms-5.2.7/contrib/startup/systemd/netxms-server.service, so copy it to /etc/systemd/system
                          Create a basic configuration file in /etc/nxagentd.conf according to the documentation

                          Then register the unit, try to start the service, and check it out.
                          Code: [Select]
                          systemctl daemon-reload
                          systemctl start netxms-agent
                          systemctl status netxms-agent

                          This is the minimum configuration for the agent; hopefully, it will be sufficient for your purposes.
                          The agent log is according to the agent configuration, where you will find further operational information if it starts.
                          LogFile=/var/log/nxagentd


                          But I have some troubles with ssh connection to node from NetXMS client. Is it due to I am connecting from client without VPN and nodes are in VPN? Support for ssh should be included in the compilation.

                          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