[solved] rpi.snm file does not exist in subagent

Started by Eisbaeeer, July 04, 2019, 12:47:18 PM

Previous topic - Next topic

Eisbaeeer

Hi
I installed the nxagentd from repo. After activating the subagend rpi, I got error message:

2019.07.04 09:50:00.870 *E* Error loading subagent module "rpi.nsm": /usr/lib/arm-linux-gnueabihf/netxms/rpi.nsm: cannot open shared object file: No such file or directory

Checked the folder of "/usr/lib/arm-linux-gnueabihf/netxms/". There are all subagents, but the rpi subagent is missing.
Reinstalled the nxagend does not fix the issue.
Any solution for Raspberry without compile from source?

cat /proc/version
Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018

nxagentd -v
NetXMS Core Agent Version 2.2.8 Build 9514 (2.2.8-32-g4a24d07a2a) (UNICODE)


Sincerly Lars

Eisbaeeer

#1
Ok,
compiled nxagend from source. No rpi.nsm on my system.
What´s wrong?

locate *.nsm
/usr/lib/arm-linux-gnueabihf/netxms/dbquery.nsm
/usr/lib/arm-linux-gnueabihf/netxms/devemu.nsm
/usr/lib/arm-linux-gnueabihf/netxms/ds18x20.nsm
/usr/lib/arm-linux-gnueabihf/netxms/ecs.nsm
/usr/lib/arm-linux-gnueabihf/netxms/filemgr.nsm
/usr/lib/arm-linux-gnueabihf/netxms/gps.nsm
/usr/lib/arm-linux-gnueabihf/netxms/linux.nsm
/usr/lib/arm-linux-gnueabihf/netxms/lmsensors.nsm
/usr/lib/arm-linux-gnueabihf/netxms/logwatch.nsm
/usr/lib/arm-linux-gnueabihf/netxms/netsvc.nsm
/usr/lib/arm-linux-gnueabihf/netxms/ping.nsm
/usr/lib/arm-linux-gnueabihf/netxms/portcheck.nsm
/usr/lib/arm-linux-gnueabihf/netxms/sms.nsm
/usr/lib/arm-linux-gnueabihf/netxms/ssh.nsm
/usr/lib/arm-linux-gnueabihf/netxms/ups.nsm
/usr/local/lib/netxms/dbquery.nsm
/usr/local/lib/netxms/devemu.nsm
/usr/local/lib/netxms/ds18x20.nsm
/usr/local/lib/netxms/ecs.nsm
/usr/local/lib/netxms/filemgr.nsm
/usr/local/lib/netxms/gps.nsm
/usr/local/lib/netxms/linux.nsm
/usr/local/lib/netxms/logwatch.nsm
/usr/local/lib/netxms/netsvc.nsm
/usr/local/lib/netxms/ping.nsm
/usr/local/lib/netxms/portcheck.nsm
/usr/local/lib/netxms/sms.nsm
/usr/local/lib/netxms/ups.nsm



Ohhh man. There is a switch " --with-rpi-agent"
I will try and report....

Ok, little bit tricky, but it works. This is the way to get running:

# download the latest version of the library, say bcm2835-1.xx.tar.gz, then:
sudo tar zxvf bcm2835-1.xx.tar.gz
cd bcm2835-1.xx
sudo ./configure
sudo make
sudo make check
sudo make install

# download the latest netxms source
sudo tar zxvf netxmsxxx
cd netxm...
sudo ./configure --with-agent --with-snmp --with-client --with-client-proxy --disable-ssh --disable-mqtt --with-rpi-agent --libdir=/usr/local/lib
sudo make
sudo make install

Victor Kirhenshtein

Hi,

please note that RPi subagent has very limited functionality: it provides access to GPIO PINs, supports reading DHT22 sensor connected to GPIO, and provides CPU temperature.

Best regards,
Victor