NagiosXI wmic client linked against nonexistent libsasl.so.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nbdstl
Posts: 16
Joined: Fri Apr 24, 2015 9:11 am

NagiosXI wmic client linked against nonexistent libsasl.so.2

Post by nbdstl »

Nagios XI Version: 2014r2.7 [demo]
Host: CentOS Linux release 7.1.1503
Host architecture: 64bit
Install: manual

Problem Description
/usr/local/bin/wmic fails to run, preventing any WMI service checks

[root@localhost ~]# /usr/local/bin/wmic
/usr/local/bin/wmic: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory

cyrus-sasl-lib is installed (cyrus-sasl-lib-2.1.26-17.el7.x86_64), but does not contain libsasl2.so.2:
[root@localhost ~]# rpm -qil cyrus-sasl-lib | egrep libsasl2.so
/usr/lib64/libsasl2.so.3
/usr/lib64/libsasl2.so.3.0.0

wmic isn't in the Nagios XI tarball, so I assume it's downloaded pre-compiled. The libsasl version must have changed between CentOS 5/6 and CentOS 7.

Chris Myers
Networks By Design
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NagiosXI wmic client linked against nonexistent libsasl.

Post by jdalrymple »

I haven't found the rhyme or reason to when it works and when it doesn't. I have run into that problem, however on my current Cent7 build it isn't occurring.

Either way you can simply ln -s to fix the issue, wmic doesn't care.

Code: Select all

ln -s /usr/lib64/libsasl2.so.3 /usr/lib64/libsasl2.so.2
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NagiosXI wmic client linked against nonexistent libsasl.

Post by jolson »

Chris,

jdalrymple beat me to providing a fix, but here is some addition information I dug up:

From https://bugzilla.redhat.com/show_bug.cgi?id=1143874:
The binary needs to be recompiled for RHEL7, or you will need to install a copy of libsasl2.so.2. libsasl2.so.2 comes from RHEL 6 and does not exist in RHEL 7.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
nbdstl
Posts: 16
Joined: Fri Apr 24, 2015 9:11 am

Re: NagiosXI wmic client linked against nonexistent libsasl.

Post by nbdstl »

After linking libsasl2.so.2 to libsasl3.so.3 wmic now runs.

Thanks,
Chris
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI wmic client linked against nonexistent libsasl.

Post by ssax »

Glad to hear that, marking this as resolved and locking the topic, feel free to create another if you have any more issues.
Locked