Nxagentd upgrade from 1.2.6 to 1.2.9
-
Hi, i just upgraded my server and then started to upgrade all my machines agents.
All machines are running Debian 6 or 7 and everything is working smootly
Except one machine
root@webserver:/home/nihplod# /usr/bin/nxagentd -c /etc/nxagentd.conf -D 9 [01-Nov-2013 17:18:49.515] [INFO ] Additional configs was loaded from /etc/nxagentd.conf.d [01-Nov-2013 17:18:49.515] [INFO ] Debug level set to 9 [01-Nov-2013 17:18:49.515] [ERROR] Failed to load agent's registry from file /usr/var/netxms/registry.dat [01-Nov-2013 17:18:49.515] [ERROR] Failed to save agent's registry to file /usr/var/netxms/registry.dat: No such file or directory [01-Nov-2013 17:18:49.516] [DEBUG] Subagent API initialized [01-Nov-2013 17:18:50.522] [DEBUG] Linux: using /sys/block to distinguish devices from partitions [01-Nov-2013 17:18:50.524] [DEBUG] Unable to parse /proc/drbd, DRBD data collector will not start [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=fd0 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=sr0 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=sda isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=sda1 isRealDevice=0) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=sda2 isRealDevice=0) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=sda5 isRealDevice=0) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=loop0 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=loop1 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=loop2 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=loop3 isRealDevice=1) [01-Nov-2013 17:18:50.524] [DEBUG] ParseIoStat(): new device added (name=loop4 isRealDevice=1) [01-Nov-2013 17:18:50.525] [DEBUG] ParseIoStat(): new device added (name=loop5 isRealDevice=1) [01-Nov-2013 17:18:50.525] [DEBUG] ParseIoStat(): new device added (name=loop6 isRealDevice=1) [01-Nov-2013 17:18:50.525] [DEBUG] ParseIoStat(): new device added (name=loop7 isRealDevice=1) [01-Nov-2013 17:18:50.526] [INFO ] Subagent "/usr/lib/libnsm_linux.so" loaded successfully /usr/bin/nxagentd: symbol lookup error: /usr/bin/nxagentd: undefined symbol: _Z23DBSetDebugPrintCallbackPFviPKwP13__va_list_tagEroot@webserver:/home/nihplod# uname -a Linux webserver 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/LinuxIt works on other machine with similar installation so i am a bit confused. Anything i messed up?
Edit--
If i remove 1.2.9 and install 1.2.6 again it works good
-
Hi!
Looks like after upgrade it still loads libnetxms.so from previous version. How did you install it - from deb package or from sources?
Best regards,
Victor -
-
I think yes, try to deinstall it and find all possible remnants. Maybe there are libnetxms.so hanging around for some reason. Remember to deinstall both base and agent packages, libnetxms is part of base package.
Best regards,
Victor -
Same issue, deinstall. Checked after all the libs, reinstalled. Same issue
root@webserver:/home/nihplod# apt-get remove netxms-agent netxms-base Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: netxms-agent netxms-base 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 43839 files and directories currently installed.) Removing netxms-agent ... Removing netxms-base ... root@webserver:/home/nihplod# locate netxms /home/nihplod/netxms-agent_1.2.0_amd64.deb /home/nihplod/netxms-agent_1.2.1_amd64.deb /home/nihplod/netxms-agent_1.2.3_amd64.deb /home/nihplod/netxms-agent_1.2.6_amd64.deb /home/nihplod/netxms-base_1.2.0_amd64.deb /home/nihplod/netxms-base_1.2.1_amd64.deb /home/nihplod/netxms-base_1.2.3_amd64.deb /home/nihplod/netxms-base_1.2.6_amd64.deb /usr/lib/libnetxms.so /usr/lib/libnetxms.so.0 /usr/lib/libnetxms.so.0.0.2 /usr/lib/libnetxms.so.1 /usr/lib/libnetxms.so.1.0.0 /usr/lib/netxms /var/lib/dpkg/info/netxms-agent.list /var/lib/dpkg/info/netxms-agent.postinst /var/lib/dpkg/info/netxms-agent.postrm /var/lib/dpkg/info/netxms-agent.preinst /var/lib/dpkg/info/netxms-agent.prerm /var/lib/dpkg/info/netxms-base.list root@webserver:/home/nihplod# cd /usr/lib root@webserver:/usr/lib# rm libn libnewt.so.0.52 libnfsidmap/ libnsl.so libnss_hesiod.so libnewt.so.0.52.11 libnfsidmap.so.0 libnss_compat.so libnss_nisplus.so libnfnetlink.so.0 libnfsidmap.so.0.3.0 libnss_dns.so libnss_nis.so libnfnetlink.so.0.2.0 libnsl.a libnss_files.so root@webserver:/usr/lib# rm libn libnewt.so.0.52 libnfsidmap/ libnsl.so libnss_hesiod.so libnewt.so.0.52.11 libnfsidmap.so.0 libnss_compat.so libnss_nisplus.so libnfnetlink.so.0 libnfsidmap.so.0.3.0 libnss_dns.so libnss_nis.so libnfnetlink.so.0.2.0 libnsl.a libnss_files.so root@webserver:/usr/lib# find / -iname "*netxms*" /home/nihplod/netxms-base_1.2.1_amd64.deb /home/nihplod/netxms-base_1.2.9_amd64.deb /home/nihplod/netxms-base_1.2.3_amd64.deb /home/nihplod/netxms-agent_1.2.1_amd64.deb /home/nihplod/netxms-agent_1.2.0_amd64.deb /home/nihplod/netxms-agent_1.2.3_amd64.deb /home/nihplod/netxms-base_1.2.6_amd64.deb /home/nihplod/netxms-agent_1.2.9_amd64.deb /home/nihplod/netxms-base_1.2.0_amd64.deb /home/nihplod/netxms-agent_1.2.6_amd64.deb /var/lib/dpkg/info/netxms-agent.list /var/lib/dpkg/info/netxms-agent.postrm root@webserver:/usr/lib# find / -iname "*nx*" /lib/modules/2.6.32-5-amd64/kernel/drivers/hid/hid-petalynx.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/scsi/bnx2i /lib/modules/2.6.32-5-amd64/kernel/drivers/scsi/bnx2i/bnx2i.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/media/dvb/frontends/nxt200x.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/media/dvb/frontends/nxt6000.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/net/bnx2.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/net/bnx2x.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/net/fealnx.ko /lib/modules/2.6.32-5-amd64/kernel/drivers/net/wan/wanxl.ko /lib/modules/2.6.32-5-amd64/kernel/fs/qnx4 /lib/modules/2.6.32-5-amd64/kernel/fs/qnx4/qnx4.ko /tmp/.nxagentd.push /tmp/.nxagentd.sd /sys/devices/LNXSYSTM:00 /sys/devices/LNXSYSTM:00/LNXSYBUS:00 /sys/devices/LNXSYSTM:00/LNXSYBUS:00/LNXCPU:00 /sys/devices/LNXSYSTM:00/LNXTHERM:00 /sys/devices/LNXSYSTM:00/LNXPWRBN:00 /sys/bus/acpi/devices/LNXSYSTM:00 /sys/bus/acpi/devices/LNXSYBUS:00 /sys/bus/acpi/devices/LNXCPU:00 /sys/bus/acpi/devices/LNXTHERM:00 /sys/bus/acpi/devices/LNXPWRBN:00 /sys/bus/acpi/drivers/button/LNXPWRBN:00 /sys/bus/acpi/drivers/processor/LNXCPU:00 /sys/kernel/slab/qnx4_inode_cache /sys/module/qnx4 /etc/rc3.d/S17nxagentd /etc/rc1.d/K01nxagentd /etc/nxagentd.conf.backup /etc/rc6.d/K01nxagentd /etc/rc2.d/S17nxagentd /etc/rc4.d/S17nxagentd /etc/nxagentd.conf /etc/rc0.d/K01nxagentd /etc/rc5.d/S17nxagentd /boot/grub/lnxboot.img /home/nihplod/apcupsd-3.14.10/platforms/qnx /home/nihplod/nxagentd.conf /var/lib/update-rc.d/nxagentd /var/log/nxagentd.log /usr/lib/grub/i386-pc/lnxboot.img /usr/lib/os-probes/mounted/10qnx /usr/src/linux-headers-2.6.32-5-amd64/include/config/hid/petalynx.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/wanxl.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/scsi/bnx2 /usr/src/linux-headers-2.6.32-5-amd64/include/config/bnx2x.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/qnx4fs /usr/src/linux-headers-2.6.32-5-amd64/include/config/bnx2.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/fealnx.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/dvb/nxt6000.h /usr/src/linux-headers-2.6.32-5-amd64/include/config/dvb/nxt200x.h /usr/src/linux-headers-2.6.32-5-common/include/linux/qnxtypes.h /usr/src/linux-headers-2.6.32-5-common/include/linux/xilinxfb.h /usr/src/linux-headers-2.6.32-5-common/include/linux/i2c-pnx.h /usr/src/linux-headers-2.6.32-5-common/include/linux/qnx4_fs.h /usr/src/linux-headers-2.6.32-5-common/include/linux/serial_pnx8xxx.h /usr/local/lib/libnxtre.so.5 /usr/local/lib/libnxdb.so.1 /usr/local/lib/libnxlp.la /usr/local/lib/libnxtre.la /usr/local/lib/libnxdb.so /usr/local/lib/libnxtre.so /usr/local/lib/libnxsqlite.so.1 /usr/local/lib/libnxsqlite.so.1.0.0 /usr/local/lib/libnxlp.so.1 /usr/local/lib/libnxlp.so /usr/local/lib/libnxlp.so.1.0.0 /usr/local/lib/libnxdb.so.1.0.0 /usr/local/lib/libnxsqlite.so /usr/local/lib/libnxexpat.so.1 /usr/local/lib/libnxexpat.la /usr/local/lib/libnxexpat.so /usr/local/lib/libnxdb.la /usr/local/lib/libnxsqlite.la /usr/local/lib/libnxexpat.so.1.0.0 /usr/local/lib/libnxtre.so.5.0.0 /usr/local/bin/nxdevcfg /usr/local/bin/nxcptest /usr/share/doc/w3m/ja/examples/keymap.lynx /usr/share/doc/w3m/examples/keymap.lynx /usr/share/perl/5.10.1/ExtUtils/MM_QNX.pm /usr/share/perl/5.10.1/unicore/lib/gc_sc/Phnx.pl /usr/share/awstats/icon/os/winxbox.png /usr/share/awstats/icon/os/winxp.png /usr/share/awstats/icon/os/qnx.png /usr/share/awstats/icon/browser/winxbox.png /usr/share/awstats/icon/browser/lynx.png /usr/share/man/man1/unxz.1.gz /usr/share/man/man3/warnx.3.gz /usr/share/man/man3/CMSG_NXTHDR.3.gz /usr/share/man/man3/vwarnx.3.gz /usr/share/perl5/URI/file/QNX.pm /usr/share/vim/vim72/doc/os_qnx.txt /usr/share/vim/vim72/syntax/lynx.vim /usr/share/vim/vim72/syntax/sgmllnx.vim /usr/share/mime/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.xml /usr/share/mime/application/vnd.openxmlformats-officedocument.presentationml.slideshow.xml /usr/share/mime/application/vnd.openxmlformats-officedocument.presentationml.presentation.xml /usr/share/mime/application/vnd.openxmlformats-officedocument.wordprocessingml.document.xml /usr/share/terminfo/q/qnxm /usr/share/terminfo/q/qnxt /usr/share/terminfo/q/qnxw /usr/share/terminfo/q/qnx4 /usr/share/terminfo/q/qnxt4 /usr/share/terminfo/q/qnxt2 /usr/share/terminfo/q/qnx /usr/share/terminfo/q/qnxtmono /usr/share/terminfo/n/nxterm /usr/include/linux/qnxtypes.h /usr/include/linux/qnx4_fs.h /usr/bin/unxzroot@webserver:/home/nihplod# dpkg -i netxms-base_1.2.9_amd64.deb netxms-agent_1.2.9_amd64.deb Selecting previously deselected package netxms-base. (Reading database ... 43771 files and directories currently installed.) Unpacking netxms-base (from netxms-base_1.2.9_amd64.deb) ... Selecting previously deselected package netxms-agent. Unpacking netxms-agent (from netxms-agent_1.2.9_amd64.deb) ... Setting up netxms-base (1.2.9) ... Setting up netxms-agent (1.2.9) ...root@webserver:/home/nihplod# /usr/bin/nxagentd -c /etc/nxagentd.conf -D 9 [01-Nov-2013 19:27:35.490] [INFO ] Additional configs was loaded from /etc/nxagentd.conf.d [01-Nov-2013 19:27:35.490] [INFO ] Debug level set to 9 [01-Nov-2013 19:27:35.490] [ERROR] Failed to load agent's registry from file /usr/var/netxms/registry.dat [01-Nov-2013 19:27:35.490] [ERROR] Failed to save agent's registry to file /usr/var/netxms/registry.dat: No such file or directory [01-Nov-2013 19:27:35.490] [DEBUG] Subagent API initialized [01-Nov-2013 19:27:36.496] [DEBUG] Linux: using /sys/block to distinguish devices from partitions [01-Nov-2013 19:27:36.499] [INFO ] Subagent "/usr/lib/libnsm_linux.so" loaded successfully /usr/bin/nxagentd: symbol lookup error: /usr/bin/nxagentd: undefined symbol: _Z23DBSetDebugPrintCallbackPFviPKwP13__va_list_tagE -
Looks like you have some NetXMS libs in /usr/local/lib/. They are not from deb package, as it installs all libs into /usr/lib. Looks like some old installation built from sources.
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