NetXMS Support Forum

Development => General => Topic started by: masespacio.eu on April 06, 2020, 02:26:48 AM

Title: install NetXMS server in Raspberry Pi 3 B+
Post by: masespacio.eu on April 06, 2020, 02:26:48 AM
Hello,

I'm trying to install NetXMS server in a Raspberry Pi 3 B + but I canĀ“t made to work it.
I'm following the steps indicated in the message:
https://www.netxms.org/forum/general-support/when-netxms-3-0-coming-out-raspberry-pi/msg27035/#msg27035

apt update
apt install automake libssl-dev libcurl4-openssl-dev libssh-dev libmosquitto-dev libpcre3-dev postgresql-client libpq-dev unixodbc-dev

PCRE:
wget https://ftp.pcre.org/pub/pcre/pcre-8.43.tar.gz
tar zxvf pcre-8.43.tar.gz pcre-8.43 /
cd pcre-8.43 /
./configure --prefix = / opt / pcre --enable-pcre32 --disable-cpp --enable-utf --disable-stack-for-recursion --enable-unicode-properties --disable-dependency-tracking
make
make install

OpenSSL:
wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
tar zxvf openssl-1.1.1d.tar.gz
cd openssl-1.1.1d
./config --prefix = / opt / openssl no-comp threads
make
make install

bcm2835 which is needed for --with-rpi-agent
apt-get install html-xml-utils
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\ n' -c" div.textblock> p: nth-child (4)> a: nth-child (1) "` | tar xz --strip-components = 1 -C bcm2835)
cd bcm2835
./configure
make
make install

NetXMS Agent:
./configure --prefix = / opt / netxms --with-agent --with-internal-libexpat --with-internal-sqlite --with-internal-zlib --with-internal-libjansson --with-mariadb - -with-odbc --with-pgsql --with-sqlite --with-openssl = / opt / openssl --with-pcre = / opt / pcre --with-rpi-agent
make
make install [/ i]
I have changed some lines of commads:
wget https://www.openssl.org/source/openssl-1.1.1f.tar.gz................/i]
openssl-1.1.1f instead of openssl-1.1.1d
Like this line is not working:
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\ n' -c" div.textblock > p: nth-child (4)> a: nth-child (1) "` | tar xz --strip-components = 1 -C bcm2835) [/ i]

I have tried with this commands:
http://www.airspayce.com/mikem/bcm2835/bcm2835-1.63.tar.gz
tar zxvf bcm2835-1.63.tar.gz
cd bcm2835-1.63
./configure
make
sudo make check
sudo make install [/ i]

In spite of this changes, I don't making it work.

What I can do?

Thanks!
Title: Re: install NetXMS server in Rasberry Pi 3 B+
Post by: Victor Kirhenshtein on April 06, 2020, 07:26:33 PM
Hi!

What exact errors you are getting? I see commands in your post but no actual output with error messages. Also, what version of Raspbian you are using?

Best regards,
Victor
Title: Re: install NetXMS server in Rasberry Pi 3 B+
Post by: masespacio.eu on April 07, 2020, 04:00:58 AM
Hello,
Sorry Maybe I was not clear enough.

1 when I try to execute these orders:
[mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\ n' -c" div.textblock> p: nth-child (4)> a: nth-child (1) "` | tar xz --strip-components = 1 -C bcm2835)
I have this error:
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now"

---------------------------------------------------------------------
So I replaced that line by:
---------------------------------------------------------------------
http://www.airspayce.com/mikem/bcm2835/bcm2835-1.63.tar.gz
tar zxvf bcm2835-1.63.tar.gz
cd bcm2835-1.63
./configure
make
sudo make check
sudo make install
----------------------------------------------------------------------
Is it right?

2 After I installed Tomcat8:
sudo apt-get install tomcat8

3 Download the file: https://www.netxms.org/download/releases/3.2/nxmc-3.2.478.war

Copy nxmc.war to webapps directory: /var/lib/tomcat8/webapps and I try to access to NetXMS web interface http://SERVER_IP:8080/nxmc but it doesn't show me nothing.
What is wrong?
Thanks!
Title: Re: install NetXMS server in Rasberry Pi 3 B+
Post by: Victor Kirhenshtein on April 07, 2020, 10:50:25 AM
Hi,

yes, #1 is correct. Any way that get you working bcm2835 library is fine. Looks like download URL in that post is outdated.

#3 - you did rename nxmc-3.2.478.war to nxmc.war? If yes and still nothing shown check Tomcat log files or post them there.

Also, we have Raspbian repository for agent and server so you can just install them without building yourself.

Best regards,
Victor
Title: Re: install NetXMS server in Rasberry Pi 3 B+
Post by: masespacio.eu on April 07, 2020, 01:28:17 PM
Hello!
#3 Yes, I have renamed the file nxmc-3.2.478 to nxmc.war so in the first moment in the folder /var/lib/tomcat8/webapps only I have nxmc.war file and when I try to access web interface http://SERVER_IP:8080/nxmc, it create a new folder with name nxmc but it is empty.
Thanks!!