NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Agent for Raspberry Pi ( Buster )  (Read 279 times)

curruscanis

  • Newbie
  • *
  • Posts: 34
    • View Profile
Agent for Raspberry Pi ( Buster )
« on: October 15, 2019, 11:36:37 pm »

It it possible to have an ARMF capable agent install for the raspberry pi 3?

I am building various systems that use raspberry pi's to interact with physical environments and would like to be able to monitor them.

I should mention I have attempted to install the deb package that was created a while back but the prerequisites of that install conflict with my modern versions.

« Last Edit: October 15, 2019, 11:38:10 pm by curruscanis »
Logged

Borgso

  • Jr. Member
  • **
  • Posts: 62
    • View Profile
Re: Agent for Raspberry Pi ( Buster )
« Reply #1 on: October 16, 2019, 09:27:24 am »

Hi.

While waiting for a maintained RPi packages, im building agent from source on RPi.
Using something like this to get the latest version built:

Code: [Select]
sudo apt-get install -y links libssl-dev build-essential
MAJOR=$(links -dump "https://www.netxms.org/download/releases/" | egrep "([0-9]+\.[0-9])"  | awk '{print $1}' | cut -d "/" -f1 | tail -n1)
MINOR=$(links -dump "https://netxms.org/download/releases/$MAJOR" | sed 's/[^0-9.]*\([0-9.]*\).*/\1/' | egrep -v "^$|^\." | sort -t. -k3,3n | tail -n1 | sed 's/\.$//')

echo "Create build folder"
mkdir ~/NetXMS
cd ~/NetXMS
wget --no-check-certificate https://www.netxms.org/download/releases/${MAJOR}/netxms-${MINOR}.tar.gz

echo "Unpack source to clean folder"
if [ -d netxms-${MINOR} ]; then rm -rf netxms-${MINOR}; fi
tar -zxvf netxms-${MINOR}.tar.gz
cd netxms-${MINOR}

./configure --with-agent --without-curl --disable-ssh --disable-mqtt --prefix=/opt/nxagent
RETURN_CODE=$?

if [ $RETURN_CODE -gt 0 ]; then
    echo "Something bad happen: $RETURN_CODE"
    exit
fi

echo "Stop current"
sudo systemctl stop nxagentd

echo "Make install"
sudo make install
RETURN_CODE=$?

if [ $RETURN_CODE -gt 0 ]; then
    echo "Something bad happen: $RETURN_CODE"
    exit
fi

sudo cp contrib/startup/systemd/nxagentd.service /etc/systemd/system/
sudo systemctl enable nxagentd
Logged

curruscanis

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Agent for Raspberry Pi ( Buster )
« Reply #2 on: November 07, 2019, 11:11:20 pm »

I tried this, and after a bit of messing with it still no luck.  I was able to get through the "sudo make install" but the files under the folder:

pi@pi4:~/NetXMS/netxms-3.0.2258/contrib/startup/systemd $ ls
Makefile  Makefile.am  Makefile.in  netxmsd.in  nxagentd.in  README

do not include the build service file after the make.
Logged