[solved] rpi.snm file does not exist in subagent
-
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 directoryChecked 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
-
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.nsmOhhh 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 -
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
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