NetXMS Agent on Odroid-HC2, level zero
-
config file absence is not an issue yet - it's not able to find a .so library.
Try to create a file /etc/ld.so.conf.d/netxms.conf with the following contents:
/opt/netxms/lib/Then run
ldconfigThis should add /opt/netxms/lib/ to the list of places where system searches for shared libraries.
Then attempt to launch nxagentd -D 6 should give something like this:
Configuration loading error: Could not process "/etc/nxagentd.conf"! Error loading configuration from "/etc/nxagentd.conf" section CORE Error loading configuration fileThe next step is to create agent config file /etc/nxagentd.conf. The minimal config could be like this (replace the address in MasterServers to actual address of your NetXMS server):
LogFile = /var/log/nxagentd DebugLevel = 2 MasterServers = 192.168.1.2 -
-
What I did:
touch /etc/ld.so.conf.d/netxms.conf
nano /etc/ld.so.conf.d/netxms.conf (added in /opt/netxms/lib/)
ldconfig--here is the results--
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3.5.3.dpkg-tmp is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3.5.3 is not an ELF file - it has the wrong magic bytes at the start.
/sbin/ldconfig.real: /usr/lib/arm-linux-gnueabihf/libavahi-common.so.3 is not a symbolic link
root@odroid:~/opt/netxms/lib#
What did I miss?
-
ldconfig says that there's something wrong with files in /usr/lib/arm-linux-gnueabihf/ - but that's not related to netxms.
What about nxagentd - what happens if you try to start it? -
root@odroid:~# /opt/netxms/bin/nxagentd -D 6
-bash: /opt/netxms/bin/nxagentd: No such file or directorythen tried this
root@odroid:~# opt/netxms/bin/nxagentd -D 6
opt/netxms/bin/nxagentd: error while loading shared libraries: libappagent.so.31 : cannot open shared object file: No such file or directory
root@odroid:~#see this in the folder
root@odroid:~# opt/netxms/bin/nx
nxagentd nxapush nxdevcfg nxgenguid nxmibc nxsnmpset
nxappget nxcsum nxencpasswd nxlptest nxsnmpget nxsnmpwalkwhen Nano into: /etc/ld.so.conf.d/netxms.conf
**GNU nano 2.9.3 /etc/ld.so.conf.d/netxms.conf**
/opt/netxms/lib/
-
-
Thanks for pointing that out Borgso!
What do I need to change with this code. I believe this was my problem.
tar xvzf nxagent-3.1.343-linux-arm.tar.gzIssue I see now
root@odroid:~# /opt/netxms/bin/nxagentd -D 6
/opt/netxms/bin/nxagentd: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /opt/netxms/bin/nxagentd)
/opt/netxms/bin/nxagentd: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28' not found (required by /opt/netxms/lib/libnetxms.so.31)
root@odroid:~#Added
touch /etc/ld.so.conf.d/netxms.conf nano /etc/ld.so.conf.d/netxms.conf entered:/opt/netxms/lib/ -
-
-
-
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