Raspberry Pi 3 - Compile Agent

Started by Tursiops, May 04, 2016, 03:29:39 AM

Previous topic - Next topic

Tursiops

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?

tomaskir

Here are compiled armhf packages.

Tursiops

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

Tursiops

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.

tomaskir

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?

nicola

Do you by chanche also have the server package?

Thank you for these, in the meanwhile :)

Nicola

tomaskir

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.

jdowney

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


tomaskir

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)